> ## 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](/zh-TW/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-TW/reference/graphics/d3d12/structs/d3d12_clear_value_public.md)
- [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_DEPTH_STENCILOP_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencilop_desc_public.md)
- [D3D12_DEPTH_STENCIL_VIEW_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public.md)
