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

# D3D12_DEPTH_WRITE_MASK

> Identifies the portion of a depth-stencil buffer for writing depth data.

Identifies the portion of a depth-stencil buffer for writing depth data.

## Syntax

```cpp theme={null}
typedef enum D3D12_DEPTH_WRITE_MASK
{
    D3D12_DEPTH_WRITE_MASK_ZERO = 0,
    D3D12_DEPTH_WRITE_MASK_ALL = 1
} D3D12_DEPTH_WRITE_MASK
```

## Constants

| Constant                        | Description                                  |
| ------------------------------- | -------------------------------------------- |
| D3D12\_DEPTH\_WRITE\_MASK\_ZERO | Turn off writes to the depth-stencil buffer. |
| D3D12\_DEPTH\_WRITE\_MASK\_ALL  | Turn on writes to the depth-stencil buffer.  |

## Remarks

This enum is used by the [D3D12\_DEPTH\_STENCIL\_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public) 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\_DEPTH\_STENCIL\_DESC](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-depth-stencil-desc)

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


## Related topics

- [D3D12_DEPTH_STENCIL_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_NODE_MASK](/reference/graphics/d3d12/structs/d3d12_node_mask_public.md)
- [D3D12_DEPTH_STENCILOP_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencilop_desc_public.md)
- [D3D12_DEPTH_STENCIL_VALUE](/reference/graphics/d3d12/structs/d3d12_depth_stencil_value_public.md)
