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

> 指定深度值和模板值。

指定深度值和模板值。

## 语法

```cpp theme={null}
typedef struct D3D12_DEPTH_STENCIL_VALUE
{
    FLOAT Depth;
    UINT8 Stencil;
} D3D12_DEPTH_STENCIL_VALUE
```

### 成员

*Depth*\
类型：FLOAT

指定深度值。

*Stencil*\
类型：UINT8

指定模板值。

## 备注

此结构在 [D3D12\_CLEAR\_VALUE](/reference/graphics/d3d12/structs/d3d12_clear_value_public) 结构中使用。

## 要求

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

## 另请参阅

[核心结构](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [D3D12_CLEAR_VALUE](/zh-CN/reference/graphics/d3d12/structs/d3d12_clear_value_public.md)
- [D3D12_DEPTH_STENCIL_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_DEPTH_STENCILOP_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencilop_desc_public.md)
- [D3D12_DEPTH_STENCIL_VIEW_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public.md)
