SetDepthStencil routine

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

Syntax


PFND3DDDI_SETDEPTHSTENCIL SetDepthStencil;

__checkReturn HRESULT APIENTRY SetDepthStencil(
  _In_       HANDLE                    hDevice,
  _In_ const D3DDDIARG_SETDEPTHSTENCIL *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_SETDEPTHSTENCIL structure that specifies the depth buffer.

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

Target platform

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETDEPTHSTENCIL
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show: