UID | title | description | old-location | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | tech.root | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:d3d10umddi.PFND3D10DDI_SETDEPTHSTENCILSTATE |
PFND3D10DDI_SETDEPTHSTENCILSTATE (d3d10umddi.h) |
The SetDepthStencilState function sets a depth-stencil state. |
display\setdepthstencilstate.htm |
05/10/2018 |
|
PFND3D10DDI_SETDEPTHSTENCILSTATE, PFND3D10DDI_SETDEPTHSTENCILSTATE callback, SetDepthStencilState, SetDepthStencilState callback function [Display Devices], UserModeDisplayDriverDx10_Functions_850fde8e-3bb5-4943-94ba-d98298599c19.xml, d3d10umddi/SetDepthStencilState, display.setdepthstencilstate |
d3d10umddi.h |
D3d10umddi.h |
Desktop |
Available in Windows Vista and later versions of the Windows operating systems. |
Windows |
display |
|
|
|
|
|
The SetDepthStencilState function sets a depth-stencil state.
hDevice [in]
A handle to the display device (graphics context).
hState [in]
A handle to the depth-stencil state to set.
StencilRef [in]
A stencil reference value to compare against.
The driver can use the pfnSetErrorCb callback function to set an error code.
The driver should not encounter any error, except for D3DDDIERR_DEVICEREMOVED. Therefore, if the driver passes any error, except for D3DDDIERR_DEVICEREMOVED, in a call to the pfnSetErrorCb function, the Microsoft Direct3D runtime will determine that the error is critical. Even if the device was removed, the driver is not required to return D3DDDIERR_DEVICEREMOVED; however, if device removal interfered with the operation of SetDepthStencilState (which typically should not happen), the driver can return D3DDDIERR_DEVICEREMOVED.