18 #ifndef __H__OCULAR_GRAPHICS_DEPTH_STENCIL_STATE__H__
19 #define __H__OCULAR_GRAPHICS_DEPTH_STENCIL_STATE__H__
38 enum class DepthStencilComparison
54 enum class StencilOperation
75 slopeScaledDepthBias(0.0f)
84 float slopeScaledDepthBias;
116 : enableDepthTesting(
true),
117 enableStencilTesting(
false),
118 stencilReferenceValue(0),
119 stencilReadMask(0xFF),
120 stencilWriteMask(0xFF)
129 bool enableDepthTesting;
130 bool enableStencilTesting;
132 uint8_t stencilReferenceValue;
133 uint8_t stencilReadMask;
134 uint8_t stencilWriteMask;
StencilOperation stencilFailOp
Operation to perform when stencil testing fails.
Definition: DepthStencilState.hpp:104
Definition: DepthStencilState.hpp:70
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: DepthStencilState.hpp:90
StencilOperation stencilPassOp
Operation to perform when both stencil and depth testing passes.
Definition: DepthStencilState.hpp:103
Definition: DepthStencilState.hpp:113
DepthStencilComparison comparisonFunction
Function to compare source data against destination data.
Definition: DepthStencilState.hpp:107
StencilOperation stencilPassDepthFailOp
Operation to perform when stencil testing passes, but depth testing fails.
Definition: DepthStencilState.hpp:105