PFND3DDDI_SETDEPTHSTENCIL callback function

The SetDepthStencil function sets the depth buffer in the driver's context.

Syntax

PFND3DDDI_SETDEPTHSTENCIL Pfnd3dddiSetdepthstencil;

HRESULT Pfnd3dddiSetdepthstencil(
  HANDLE hDevice,
  CONST D3DDDIARG_SETDEPTHSTENCIL *
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

*

Return Value

SetDepthStencil returns S_OK or an appropriate error result if the depth buffer is not successfully set.

Remarks

The user-mode display driver should store the depth buffer in the driver's context when the Microsoft Direct3D runtime calls SetDepthStencil.

Requirements

   
Windows version Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See Also

D3DDDI_DEVICEFUNCS

D3DDDIARG_SETDEPTHSTENCIL

Send comments about this topic to Microsoft