Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ID3D10Device::ClearDepthStencilView method

Clears the depth-stencil resource.

Syntax


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

Parameters

pDepthStencilView [in]

Type: ID3D10DepthStencilView*

Pointer to the depth stencil to be cleared.

ClearFlags [in]

Type: UINT

Which parts of the buffer to clear. See D3D10_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 10:

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

 

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10Device Interface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft