LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::DepthStencilState::StencilTest Struct Reference

Describes a stencil test for either front or back faces. More...

#include <rendering_api.hpp>

Public Attributes

StencilOperation StencilFailOp { StencilOperation::Keep }
 The operation to apply to the stencil buffer, if the stencil test fails (default: StencilOperation::Keep). More...
 
StencilOperation StencilPassOp { StencilOperation::Replace }
 The operation to apply to the stencil buffer, if the stencil test passes (default: StencilOperation::Keep). More...
 
StencilOperation DepthFailOp { StencilOperation::Keep }
 The operation to apply to the stencil buffer, if the depth test fails (default: StencilOperation::Keep). More...
 
CompareOperation Operation { CompareOperation::Never }
 The operation use for stencil testing (default: CompareOperation::Never). More...
 

Detailed Description

Describes a stencil test for either front or back faces.

Member Data Documentation

◆ DepthFailOp

StencilOperation LiteFX::Rendering::DepthStencilState::StencilTest::DepthFailOp { StencilOperation::Keep }

The operation to apply to the stencil buffer, if the depth test fails (default: StencilOperation::Keep).

◆ Operation

CompareOperation LiteFX::Rendering::DepthStencilState::StencilTest::Operation { CompareOperation::Never }

The operation use for stencil testing (default: CompareOperation::Never).

◆ StencilFailOp

StencilOperation LiteFX::Rendering::DepthStencilState::StencilTest::StencilFailOp { StencilOperation::Keep }

The operation to apply to the stencil buffer, if the stencil test fails (default: StencilOperation::Keep).

◆ StencilPassOp

StencilOperation LiteFX::Rendering::DepthStencilState::StencilTest::StencilPassOp { StencilOperation::Replace }

The operation to apply to the stencil buffer, if the stencil test passes (default: StencilOperation::Keep).