Sets the depth-stencil state of the output-merger stage.
void OMSetDepthStencilState( [in] ID3D10DepthStencilState *pDepthStencilState, [in] UINT StencilRef );
- pDepthStencilState [in]
Pointer to a depth-stencil state interface (see ID3D10DepthStencilState) to bind to the device.
- StencilRef [in]
Reference value to perform against when doing a depth-stencil test. See remarks.
To create a depth-stencil state interface, call ID3D10Device::CreateDepthStencilState.
Depth-stencil state is used by the output-merger stage to setup depth-stencil testing. The stencil reference value is the control value used in the depth-stencil test.
The method will not hold a reference to the interfaces passed in. For that reason, applications should be careful not to release an interface currently in use by the device.
Build date: 11/28/2012