Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

D3D11_COLOR_WRITE_ENABLE enumeration

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

Syntax


typedef enum D3D11_COLOR_WRITE_ENABLE { 
  D3D11_COLOR_WRITE_ENABLE_RED    = 1,
  D3D11_COLOR_WRITE_ENABLE_GREEN  = 2,
  D3D11_COLOR_WRITE_ENABLE_BLUE   = 4,
  D3D11_COLOR_WRITE_ENABLE_ALPHA  = 8,
  D3D11_COLOR_WRITE_ENABLE_ALL    = ( ( ( D3D11_COLOR_WRITE_ENABLE_RED | D3D11_COLOR_WRITE_ENABLE_GREEN ) | D3D11_COLOR_WRITE_ENABLE_BLUE ) | D3D11_COLOR_WRITE_ENABLE_ALPHA )
} D3D11_COLOR_WRITE_ENABLE;

Constants

D3D11_COLOR_WRITE_ENABLE_RED

Allow data to be stored in the red component.

D3D11_COLOR_WRITE_ENABLE_GREEN

Allow data to be stored in the green component.

D3D11_COLOR_WRITE_ENABLE_BLUE

Allow data to be stored in the blue component.

D3D11_COLOR_WRITE_ENABLE_ALPHA

Allow data to be stored in the alpha component.

D3D11_COLOR_WRITE_ENABLE_ALL

Allow data to be stored in all components.

Remarks

These flags can be combined with a bitwise OR.

Requirements

Header

D3D11.h

See also

Core Enumerations

 

 

Community Additions

ADD
Show:
© 2015 Microsoft