D3D11_CLEAR_FLAG enumeration (d3d11.h)
Specifies the parts of the depth stencil to clear.
Syntax
typedef enum D3D11_CLEAR_FLAG {
D3D11_CLEAR_DEPTH = 0x1L,
D3D11_CLEAR_STENCIL = 0x2L
} ;
Constants
D3D11_CLEAR_DEPTH Value: 0x1L Clear the depth buffer, using fast clear if possible, then place the resource in a compressed state. |
D3D11_CLEAR_STENCIL Value: 0x2L Clear the stencil buffer, using fast clear if possible, then place the resource in a compressed state. |
Remarks
These flags are used when calling ID3D11DeviceContext::ClearDepthStencilView; the flags can be combined with a bitwise OR.
Requirements
Requirement | Value |
---|---|
Header | d3d11.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