> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_COLOR_WRITE_ENABLE

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

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

## Syntax

```cpp theme={null}
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 = 0
} D3D12_COLOR_WRITE_ENABLE
```

## Constants

| Constant | Description |
| - | - |
| D3D12\_COLOR\_WRITE\_ENABLE\_RED | Allow data to be stored in the red component. |
| D3D12\_COLOR\_WRITE\_ENABLE\_GREEN | Allow data to be stored in the green component. |
| D3D12\_COLOR\_WRITE\_ENABLE\_BLUE | Allow data to be stored in the blue component. |
| D3D12\_COLOR\_WRITE\_ENABLE\_ALPHA | 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](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_render_target_blend_desc_public.md) structure.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[CD3DX12\_BLEND\_DESC](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-blend-desc)

[Core Enumerations](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)


## Related topics

- [D3D12_RENDER_TARGET_BLEND_DESC](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_render_target_blend_desc_public.md)
- [D3D12_BLEND_DESC](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_blend_desc_public.md)
- [D3D12_STATIC_BORDER_COLOR](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_static_border_color_public.md)
- [D3D12_DEPTH_WRITE_MASK](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_depth_write_mask_public.md)
- [D3D12_DRED_ENABLEMENT](https://docs.xbox.com/reference/graphics/d3d12/enums/d3d12_dred_enablement_public.md)
