D3D12_COLOR_WRITE_ENABLE enumeration (d3d12.h)

Identifies which components of each pixel of a render target are writable during blending.

Syntax

typedef enum D3D12_COLOR_WRITE_ENABLE {
  D3D12_COLOR_WRITE_ENABLE_RED = 1,
  D3D12_COLOR_WRITE_ENABLE_GREEN = 2,
  D3D12_COLOR_WRITE_ENABLE_BLUE = 4,
  D3D12_COLOR_WRITE_ENABLE_ALPHA = 8,
  D3D12_COLOR_WRITE_ENABLE_ALL
} ;

Constants

 
D3D12_COLOR_WRITE_ENABLE_RED
Value: 1
Allow data to be stored in the red component.
D3D12_COLOR_WRITE_ENABLE_GREEN
Value: 2
Allow data to be stored in the green component.
D3D12_COLOR_WRITE_ENABLE_BLUE
Value: 4
Allow data to be stored in the blue component.
D3D12_COLOR_WRITE_ENABLE_ALPHA
Value: 8
Allow data to be stored in the alpha component.
D3D12_COLOR_WRITE_ENABLE_ALL
Allow data to be stored in all components.

Remarks

This enum is used by the D3D12_RENDER_TARGET_BLEND_DESC structure.

Requirements

Requirement Value
Header d3d12.h

See also

CD3DX12_BLEND_DESC

Core Enumerations