Skip to main content
Sets the reference value for depth stencil tests.

Syntax

Parameters

StencilRef [in]
Type: UINT
Reference value to perform against when doing a depth-stencil test.

Return value

Type: void None.

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

ID3D12GraphicsCommandList
Last modified on August 20, 2026