XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALDepthStencilStateCreationDescription Struct Reference

This describes the depth stencil state creation description. More...

#include <DepthStencilState.h>

Inheritance diagram for xiiGALDepthStencilStateCreationDescription:
[legend]

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
- Public Member Functions inherited from xiiHashableStruct< xiiGALDepthStencilStateCreationDescription >
constexpr xiiHashableStruct () noexcept
 Default constructor. Initializes all bytes to zero.
 
 xiiHashableStruct (const xiiHashableStruct &other) noexcept
 Bitwise copy constructor.
 
xiiHashableStructoperator= (const xiiHashableStruct &other) noexcept
 Bitwise assignment operator.
 
bool operator== (const xiiHashableStruct &other) const noexcept
 Compares equality via raw byte comparison.
 
std::strong_ordering operator<=> (const xiiHashableStruct &other) const noexcept
 Compares ordering via raw byte comparison.
 
xiiUInt32 CalculateHash () const noexcept
 Calculates a 32-bit hash from raw bytes of the struct.
 
void Clear () noexcept
 Fills all bytes with zero.
 
bool IsZero () const noexcept
 Returns true if all bytes are zero.
 

Public Attributes

bool m_bDepthEnable = true
 Enable depth-stencil operations. When set to false, the depth test always passes, depth writes are disabled, and no stencil operations are performed. The default is true.
 
bool m_bDepthWriteEnable = true
 Enable or disable writes to a depth buffer. The default is true.
 
xiiEnum< xiiGALComparisonFunctionm_ComparisonDepthFunction = xiiGALComparisonFunction::Less
 A function that compares depth data against existing depth data. The default is Less.
 
bool m_bStencilEnable = false
 Enable stencil operations. The default is false.
 
xiiUInt8 m_uiStencilReadMask = 0xFFU
 Identify which bits of the depth-stencil buffer are accessed when reading stencil data. The default is 0xFF.
 
xiiUInt8 m_uiStencilWriteMask = 0xFFU
 Identify which bits of the depth-stencil buffer are accessed when writing stencil data. The default is 0xFF.
 
xiiGALStencilOperationDescription m_FrontFace
 Identify stencil operations for the front-facing triangles.
 
xiiGALStencilOperationDescription m_BackFace
 Identify stencil operations for the back-facing triangles.
 

Detailed Description

This describes the depth stencil state creation description.

The structure generally mirrors D3D11_DEPTH_STENCIL_DESC/D3D12_DEPTH_STENCIL_DESC structure.


The documentation for this struct was generated from the following file: