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

> 識別深度樣板緩衝區中用於寫入深度資料的部分。

識別深度樣板緩衝區中用於寫入深度資料的部分。

## 語法

```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](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public) 結構使用。

## 需求

**標頭：** 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](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_NODE_MASK](/zh-TW/reference/graphics/d3d12/structs/d3d12_node_mask_public.md)
- [D3D12_DEPTH_STENCILOP_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencilop_desc_public.md)
- [D3D12_DEPTH_STENCIL_VALUE](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencil_value_public.md)
