|
Diligent Engine API Reference
|
Depth stencil state description. More...
Public Member Functions | |
| DepthStencilStateDesc (Bool _DepthEnable=True, Bool _DepthWriteEnable=True, COMPARISON_FUNCTION _DepthFunc=COMPARISON_FUNC_LESS, Bool _StencilEnable=False, Uint8 _StencilReadMask=0xFF, Uint8 _StencilWriteMask=0xFF) | |
| Initializes the structure members. More... | |
| bool | operator== (const DepthStencilStateDesc &rhs) const |
| Tests if two structures are equivalent. More... | |
Public Attributes | |
| Bool | DepthEnable |
| Enable depth-stencil operations. When it is set to False, depth test always passes, depth writes are disabled, and no stencil operations are performed. | |
| Bool | DepthWriteEnable |
| Enable or disable writes to a depth buffer. | |
| COMPARISON_FUNCTION | DepthFunc |
| A function that compares depth data against existing depth data. See Diligent::COMPARISON_FUNCTION for details. | |
| Bool | StencilEnable |
| Enable stencil opertaions. | |
| Uint8 | StencilReadMask |
| Identify which bits of the depth-stencil buffer are accessed when reading stencil data. | |
| Uint8 | StencilWriteMask |
| Identify which bits of the depth-stencil buffer are accessed when writing stencil data. | |
| StencilOpDesc | FrontFace |
| Identify stencil operations for the front-facing triangles, see Diligent::StencilOpDesc. | |
| StencilOpDesc | BackFace |
| Identify stencil operations for the back-facing triangles, see Diligent::StencilOpDesc. | |
Depth stencil state description.
This structure describes the depth stencil state and is part of the GraphicsPipelineDesc. The structure generally mirrors D3D11_DEPTH_STENCIL_DESC/D3D12_DEPTH_STENCIL_DESC structure.
|
inline |
Initializes the structure members.
Default values:
| Member | Default value |
|---|---|
| DepthEnable | True |
| DepthWriteEnable | True |
| DepthFunc | Diligent::COMPARISON_FUNC_LESS |
| StencilEnable | False |
| StencilReadMask | 0xFF |
| StencilWriteMask | 0xFF |
Members of FrontFace and BackFace are initialized by StencilOpDesc::StencilOpDesc()
|
inline |
Tests if two structures are equivalent.
| [in] | rhs | - reference to the structure to perform comparison with |