D2D1_BUFFER_PRECISION enumeration (d2d1_1.h)

Represents the bit depth of the imaging pipeline in Direct2D.

Syntax

typedef enum D2D1_BUFFER_PRECISION {
  D2D1_BUFFER_PRECISION_UNKNOWN = 0,
  D2D1_BUFFER_PRECISION_8BPC_UNORM = 1,
  D2D1_BUFFER_PRECISION_8BPC_UNORM_SRGB = 2,
  D2D1_BUFFER_PRECISION_16BPC_UNORM = 3,
  D2D1_BUFFER_PRECISION_16BPC_FLOAT = 4,
  D2D1_BUFFER_PRECISION_32BPC_FLOAT = 5,
  D2D1_BUFFER_PRECISION_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_BUFFER_PRECISION_UNKNOWN
Value: 0
The buffer precision is not specified.
D2D1_BUFFER_PRECISION_8BPC_UNORM
Value: 1
Use 8-bit normalized integer per channel.
D2D1_BUFFER_PRECISION_8BPC_UNORM_SRGB
Value: 2
Use 8-bit normalized integer standard RGB data per channel.
D2D1_BUFFER_PRECISION_16BPC_UNORM
Value: 3
Use 16-bit normalized integer per channel.
D2D1_BUFFER_PRECISION_16BPC_FLOAT
Value: 4
Use 16-bit floats per channel.
D2D1_BUFFER_PRECISION_32BPC_FLOAT
Value: 5
Use 32-bit floats per channel.
D2D1_BUFFER_PRECISION_FORCE_DWORD
Value: 0xffffffff
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits.

Do not use this value.

Remarks

Note   Feature level 9 may or may not support precision types other than 8BPC.
 

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Header d2d1_1.h

See also

D2D1_RENDERING_CONTROLS

ID2D1DeviceContext::GetRenderingControls

ID2D1DeviceContext::SetRenderingControls