Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 2.82 KB

nc-d3d10umddi-pfnd3d10ddi_setdepthstencilstate.md

File metadata and controls

85 lines (60 loc) · 2.82 KB
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 callback function
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
PFND3D10DDI_SETDEPTHSTENCILSTATE
d3d10umddi/PFND3D10DDI_SETDEPTHSTENCILSTATE
APIRef
kbSyntax
UserDefined
d3d10umddi.h
PFND3D10DDI_SETDEPTHSTENCILSTATE

PFND3D10DDI_SETDEPTHSTENCILSTATE callback function

-description

The SetDepthStencilState function sets a depth-stencil state.

-parameters

-param unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

-param unnamedParam2

hState [in]

A handle to the depth-stencil state to set.

-param unnamedParam3

StencilRef [in]

A stencil reference value to compare against.

-remarks

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.

-see-also

D3D10DDI_DEVICEFUNCS

pfnSetErrorCb