// d3d12umddi.h
typedef struct D3D12DDI_DEPTH_STENCIL_DESC_0010 {
BOOL DepthEnable;
D3D12DDI_DEPTH_WRITE_MASK DepthWriteMask;
D3D12DDI_COMPARISON_FUNC DepthFunc;
BOOL StencilEnable;
BOOL FrontEnable;
BOOL BackEnable;
UINT8 StencilReadMask;
UINT8 StencilWriteMask;
D3D12DDI_DEPTH_STENCILOP_DESC FrontFace;
D3D12DDI_DEPTH_STENCILOP_DESC BackFace;
D3D12DDI_LIBRARY_REFERENCE_0010 LibraryReference;
} D3D12DDI_DEPTH_STENCIL_DESC_0010;
View the official Windows Driver Kit DDI referenceNo description available.
The D3D12DDI_DEPTH_STENCIL_DESC_0010 structure describes a depth stencil state.
DepthEnableA Boolean value that specifies whether depth is enabled. TRUE indicates depth is enabled; FALSE indicates depth is disabled.
DepthWriteMaskA bitwise value that indicates the write properties for a depth stencil state. This member is a valid bitwise OR of the following values from the D3D12DDI_DEPTH_WRITE_MASK enumeration.
DepthFuncA D3D12DDI_COMPARISON_FUNC-typed value that indicates the depth-comparison function to perform.
StencilEnableA Boolean value that specifies whether stencil is enabled. TRUE indicates stencil is enabled; FALSE indicates stencil is disabled.
FrontEnableA Boolean value that specifies whether the performance of stencil operations on forward-facing polygons is enabled. TRUE indicates that the performance on forward-facing polygons is enabled; FALSE indicates that it is disabled.
BackEnableA Boolean value that specifies whether the performance of stencil operations on back-facing polygons is enabled. TRUE indicates that the performance on back-facing polygons is enabled; FALSE indicates that it is disabled.
StencilReadMaskAn 8-bit bitwise value that the driver uses in a bitwise AND operation with the stencil value in the stencil buffer immediately after reading the stencil value out of the stencil buffer.
StencilWriteMaskAn 8-bit bitwise value that the driver uses in a bitwise AND operation with the current stencil value before writing the result back out to the stencil buffer.
FrontFaceA D3D12DDI_DEPTH_STENCILOP_DESC structure that describes the stencil operation to perform on forward-facing polygons.
BackFaceA D3D12DDI_DEPTH_STENCILOP_DESC structure that describes the stencil operation to perform on back-facing polygons.
LibraryReferenceA D3D12DDI_LIBRARY_REFERENCE_0010 structure that describes the library.
If the StencilEnable member is set to TRUE, the FrontEnable member, BackEnable member, or both must also be set to TRUE.