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

> 描述與深度樣板檢視 (DSV) 的繫結 (在轉譯階段期間固定)，以及其開始和結束存取特性。

描述與深度樣板檢視 (DSV) 的繫結 (在轉譯階段期間固定)，以及其開始和結束存取特性。

## 語法

```cpp theme={null}
typedef struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC
{
    D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor;
    D3D12_RENDER_PASS_BEGINNING_ACCESS DepthBeginningAccess;
    D3D12_RENDER_PASS_BEGINNING_ACCESS StencilBeginningAccess;
    D3D12_RENDER_PASS_ENDING_ACCESS DepthEndingAccess;
    D3D12_RENDER_PASS_ENDING_ACCESS StencilEndingAccess;
} D3D12_RENDER_PASS_DEPTH_STENCIL_DESC
```

### 成員

*cpuDescriptor*\
類型：D3D12\_CPU\_DESCRIPTOR\_HANDLE

[D3D12\_CPU\_DESCRIPTOR\_HANDLE](/zh-TW/reference/graphics/d3d12/structs/d3d12_cpu_descriptor_handle_public)。對應至深度樣板檢視 (DSV) 的 CPU 描述元控制代碼。

*DepthBeginningAccess*\
類型：D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS

[D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS](/zh-TW/reference/graphics/d3d12/structs/d3d12_render_pass_beginning_access_public)。在轉換至轉譯階段時所要求的深度緩衝區存取。

*StencilBeginningAccess*\
類型：D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS

[D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS](/zh-TW/reference/graphics/d3d12/structs/d3d12_render_pass_beginning_access_public)。在轉換至轉譯階段時所要求的樣板緩衝區存取。

*DepthEndingAccess*\
類型：D3D12\_RENDER\_PASS\_ENDING\_ACCESS

[D3D12\_RENDER\_PASS\_ENDING\_ACCESS](/zh-TW/reference/graphics/d3d12/structs/d3d12_render_pass_ending_access_public)。在從轉譯階段轉換出去時所要求的深度緩衝區存取。

*StencilEndingAccess*\
類型：D3D12\_RENDER\_PASS\_ENDING\_ACCESS

[D3D12\_RENDER\_PASS\_ENDING\_ACCESS](/zh-TW/reference/graphics/d3d12/structs/d3d12_render_pass_ending_access_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/rendering)


## Related topics

- [BeginRenderPass (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_beginrenderpass_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)
