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::ClearDepthStencilView method

Clears the depth-stencil resource.

Syntax


void ClearDepthStencilView(
  [in] ID3D11DepthStencilView *pDepthStencilView,
  [in] UINT                   ClearFlags,
  [in] FLOAT                  Depth,
  [in] UINT8                  Stencil
);

Parameters

pDepthStencilView [in]

Type: ID3D11DepthStencilView*

Pointer to the depth stencil to be cleared.

ClearFlags [in]

Type: UINT

Identify the type of data to clear (see D3D11_CLEAR_FLAG).

Depth [in]

Type: FLOAT

Clear the depth buffer with this value. This value will be clamped between 0 and 1.

Stencil [in]

Type: UINT8

Clear the stencil buffer with this value.

Return value

Returns nothing.

Remarks

Differences between Direct3D 9 and Direct3D 11/10:

Unlike Direct3D 9, the full extent of the resource view is always cleared. Viewport and scissor settings are not applied.

 

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceContext

 

 

Show:
© 2016 Microsoft