D3D12_CLEAR_FLAGS enumeration (d3d12.h)

Specifies what to clear from the depth stencil view.

Syntax

typedef enum D3D12_CLEAR_FLAGS {
  D3D12_CLEAR_FLAG_DEPTH = 0x1,
  D3D12_CLEAR_FLAG_STENCIL = 0x2
} ;

Constants

 
D3D12_CLEAR_FLAG_DEPTH
Value: 0x1
Indicates the depth buffer should be cleared.
D3D12_CLEAR_FLAG_STENCIL
Value: 0x2
Indicates the stencil buffer should be cleared.

Remarks

This enum is used by ID3D12GraphicsCommandList::ClearDepthStencilView. The flags can be combined to clear all.

Requirements

Requirement Value
Header d3d12.h

See also

Core Enumerations