Luna::RHI::DepthStencilDesc
Describes depth stencil stage configurations of one graphics pipeline.
struct Luna::RHI::DepthStencilDesc
Member objects
-
Whether depth testing is enabled. If this is
false
, all pixels from pixel shader will pass depth testing. -
Whether to write the pixel's depth value to depth buffer if one pixel passes depth testing.
-
The compare function used for depth comparison in depth testing.
-
Whether stencil testing is enabled. If this is
false
, all pixels from pixel shader will pass stencil testing. -
The mask used to specify bits that will be loaded from stencil buffer for stencil testing. All bits that are not specified in the mask (with mask bit value 0) will be set to 0 before stencil testing is performed.
-
The mask used to specify bits that are allowed to be modified in stencil testing.
-
The depth stencil operation performed for the front face of one triangle.
-
The depth stencil operation performed for the back face of one triangle.