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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for