Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11DeviceContext::OMSetDepthStencilState method

Sets the depth-stencil state of the output-merger stage.

Syntax


void OMSetDepthStencilState(
  [in, optional] ID3D11DepthStencilState *pDepthStencilState,
  [in]           UINT                    StencilRef
);

Parameters

pDepthStencilState [in, optional]

Type: ID3D11DepthStencilState*

Pointer to a depth-stencil state interface (see ID3D11DepthStencilState) to bind to the device. Set this to NULL to use the default state listed in D3D11_DEPTH_STENCIL_DESC.

StencilRef [in]

Type: UINT

Reference value to perform against when doing a depth-stencil test. See remarks.

Return value

Returns nothing.

Remarks

To create a depth-stencil state interface, call ID3D11Device::CreateDepthStencilState.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceContext

 

 

Show:
© 2017 Microsoft