D3D11_CLEAR_FLAG Enumeration

Specifies the parts of the depth stencil to clear.

Syntax

typedef enum D3D11_CLEAR_FLAG
{
    D3D11_CLEAR_DEPTH = 0x1L,
    D3D11_CLEAR_STENCIL = 0x2L,
    D3D11_CLEAR_DEPTH_NO_COMPRESSION = 0x4L,
    D3D11_CLEAR_STENCIL_NO_COMPRESSION = 0x8L
} D3D11_CLEAR_FLAG;  

Constants

Constant Description
D3D11_CLEAR_DEPTH Clear the depth buffer, using fast clear if possible, then place the resource in a compressed state.
D3D11_CLEAR_STENCIL Clear the stencil buffer, using fast clear if possible, then place the resource in a compressed state.
D3D11_CLEAR_DEPTH_NO_COMPRESSION Clear the depth buffer, preventing fast clears, then leave the resource in a non-compressed state.
D3D11_CLEAR_STENCIL_NO_COMPRESSION Clear the stencil buffer, preventing fast clears, then leave the resource in a non-compressed state.

Remarks

These flags are used when calling ID3D11DeviceContext::ClearDepthStencilView; the flags can be combined with a bitwise OR.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).