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

> Describes a binding (fixed for the duration of the render pass) to a depth stencil view (DSV), as well as its beginning and ending access characteristics.

Describes a binding (fixed for the duration of the render pass) to a depth stencil view (DSV), as well as its beginning and ending access characteristics.

## Syntax

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

### Members

*cpuDescriptor*\
Type: D3D12\_CPU\_DESCRIPTOR\_HANDLE

A [D3D12\_CPU\_DESCRIPTOR\_HANDLE](/reference/graphics/d3d12/structs/d3d12_cpu_descriptor_handle_public). The CPU descriptor handle corresponding to the depth stencil view (DSV).

*DepthBeginningAccess*\
Type: D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS

A [D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS](/reference/graphics/d3d12/structs/d3d12_render_pass_beginning_access_public). The access to the depth buffer requested at the transition into a render pass.

*StencilBeginningAccess*\
Type: D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS

A [D3D12\_RENDER\_PASS\_BEGINNING\_ACCESS](/reference/graphics/d3d12/structs/d3d12_render_pass_beginning_access_public). The access to the stencil buffer requested at the transition into a render pass.

*DepthEndingAccess*\
Type: D3D12\_RENDER\_PASS\_ENDING\_ACCESS

A [D3D12\_RENDER\_PASS\_ENDING\_ACCESS](/reference/graphics/d3d12/structs/d3d12_render_pass_ending_access_public). The access to the depth buffer requested at the transition out of a render pass.

*StencilEndingAccess*\
Type: D3D12\_RENDER\_PASS\_ENDING\_ACCESS

A [D3D12\_RENDER\_PASS\_ENDING\_ACCESS](/reference/graphics/d3d12/structs/d3d12_render_pass_ending_access_public). The access to the stencil buffer requested at the transition out of a render pass.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Rendering](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/rendering)


## Related topics

- [BeginRenderPass (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_beginrenderpass_public.md)
- [D3D12_DEPTH_STENCIL_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc_public.md)
- [D3D12_DEPTH_STENCILOP_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencilop_desc_public.md)
- [D3D12_DEPTH_STENCIL_DESC1](/reference/graphics/d3d12/structs/d3d12_depth_stencil_desc1_public.md)
- [D3D12_DEPTH_STENCIL_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_depth_stencil_view_desc_public.md)
