> ## 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_DEPTH_WRITE_MASK

> 标识深度模板缓冲区中用于写入深度数据的部分。

标识深度模板缓冲区中用于写入深度数据的部分。

## 语法

```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
```

## 常量

| 常量 | 说明 |
| - | - |
| D3D12\_DEPTH\_WRITE\_MASK\_ZERO | 关闭对深度模板缓冲区的写入。 |
| D3D12\_DEPTH\_WRITE\_MASK\_ALL | 打开对深度模板缓冲区的写入。 |

## 注解

此枚举由 [D3D12\_DEPTH\_STENCIL\_DESC](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md) 结构使用。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[CD3DX12\_DEPTH\_STENCIL\_DESC](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-depth-stencil-desc)

[核心枚举](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)


## Related topics

- [D3D12_DEPTH_STENCIL_DESC](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_NODE_MASK](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/structs/d3d12_node_mask_public.md)
- [D3D12_DEPTH_STENCILOP_DESC](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencilop_desc_public.md)
- [D3D12_DEPTH_STENCIL_VALUE](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencil_value_public.md)
