Go to the documentation of this file.
117 #if DILIGENT_CPP_INTERFACE
127 StencilFailOp {_StencilFailOp },
128 StencilDepthFailOp {_StencilDepthFailOp},
129 StencilPassOp {_StencilPassOp },
130 StencilFunc {_StencilFunc }
190 #if DILIGENT_CPP_INTERFACE
197 Bool _DepthWriteEnable,
204 DepthEnable {_DepthEnable },
205 DepthWriteEnable{_DepthWriteEnable},
206 DepthFunc {_DepthFunc },
207 StencilEnable {_StencilEnable },
208 StencilReadMask {_StencilReadMask },
209 StencilWriteMask{_StencilWriteMask},
210 FrontFace {_FrontFace },
211 BackFace {_BackFace }
@ STENCIL_OP_KEEP
Keep the existing stencil data. Direct3D counterpart: D3D11_STENCIL_OP_KEEP/D3D12_STENCIL_OP_KEEP....
Definition: DepthStencilState.h:55
DepthStencilStateDesc(Bool _DepthEnable, Bool _DepthWriteEnable, COMPARISON_FUNCTION _DepthFunc=DepthStencilStateDesc{}.DepthFunc, Bool _StencilEnable=DepthStencilStateDesc{}.StencilEnable, Uint8 _StencilReadMask=DepthStencilStateDesc{}.StencilReadMask, Uint8 _StencilWriteMask=DepthStencilStateDesc{}.StencilWriteMask, StencilOpDesc _FrontFace=StencilOpDesc{}, StencilOpDesc _BackFace=StencilOpDesc{}) noexcept
Definition: DepthStencilState.h:196
@ STENCIL_OP_UNDEFINED
Undefined operation.
Definition: DepthStencilState.h:51
struct StencilOpDesc StencilOpDesc
Definition: DepthStencilState.h:148
@ STENCIL_OP_DECR_WRAP
Decrement the current stencil value, and wrap the value to the maximum representable unsigned value w...
Definition: DepthStencilState.h:85
@ STENCIL_OP_ZERO
Set the stencil data to 0. Direct3D counterpart: D3D11_STENCIL_OP_ZERO/D3D12_STENCIL_OP_ZERO....
Definition: DepthStencilState.h:59
Bool StencilEnable
Enable stencil opertaions. Default value: False.
Definition: DepthStencilState.h:173
STENCIL_OP StencilDepthFailOp
The stencil operation to perform when stencil testing passes and depth testing fails....
Definition: DepthStencilState.h:106
@ STENCIL_OP_REPLACE
Set the stencil data to the reference value set by calling IDeviceContext::SetStencilRef()....
Definition: DepthStencilState.h:63
bool operator==(const Plane3D &p1, const Plane3D &p2)
Definition: AdvancedMath.hpp:442
Uint8 StencilWriteMask
Identify which bits of the depth-stencil buffer are accessed when writing stencil data....
Definition: DepthStencilState.h:181
COMPARISON_FUNCTION StencilFunc
A function that compares stencil data against existing stencil data. Default value: Diligent::COMPARI...
Definition: DepthStencilState.h:114
@ STENCIL_OP_INCR_WRAP
Increment the current stencil value, and wrap the value to zero when incrementing the maximum represe...
Definition: DepthStencilState.h:80
@ COMPARISON_FUNC_LESS
Comparison passes if the source data is less than the destination data. Direct3D counterpart: D3D11_...
Definition: GraphicsTypes.h:942
StencilOpDesc BackFace
Identify stencil operations for the back-facing triangles, see Diligent::StencilOpDesc.
Definition: DepthStencilState.h:187
Uint8 StencilReadMask
Identify which bits of the depth-stencil buffer are accessed when reading stencil data....
Definition: DepthStencilState.h:177
int8_t Int8
8-bit signed integer
Definition: BasicTypes.h:48
Describes stencil operations that are performed based on the results of depth test.
Definition: DepthStencilState.h:98
@ STENCIL_OP_NUM_OPS
Helper value that stores the total number of stencil operations in the enumeration.
Definition: DepthStencilState.h:88
#define DILIGENT_END_NAMESPACE
Definition: CommonDefinitions.h:86
DepthStencilStateDesc() noexcept
Definition: DepthStencilState.h:194
StencilOpDesc(STENCIL_OP _StencilFailOp, STENCIL_OP _StencilDepthFailOp, STENCIL_OP _StencilPassOp, COMPARISON_FUNCTION _StencilFunc) noexcept
Definition: DepthStencilState.h:123
StencilOpDesc() noexcept
Definition: DepthStencilState.h:121
COMPARISON_FUNCTION DepthFunc
A function that compares depth data against existing depth data. See Diligent::COMPARISON_FUNCTION fo...
Definition: DepthStencilState.h:170
STENCIL_OP StencilFailOp
The stencil operation to perform when stencil testing fails. Default value: Diligent::STENCIL_OP_KEEP...
Definition: DepthStencilState.h:102
#define DEFAULT_INITIALIZER(x)
Definition: CommonDefinitions.h:93
bool Bool
Boolean.
Definition: BasicTypes.h:59
COMPARISON_FUNCTION
Comparison function.
Definition: GraphicsTypes.h:931
@ STENCIL_OP_INCR_SAT
Increment the current stencil value, and clamp to the maximum representable unsigned value....
Definition: DepthStencilState.h:67
Bool DepthWriteEnable
Enable or disable writes to a depth buffer. Default value: True.
Definition: DepthStencilState.h:165
struct DepthStencilStateDesc DepthStencilStateDesc
Definition: DepthStencilState.h:233
@ STENCIL_OP_INVERT
Bitwise invert the current stencil buffer value. Direct3D counterpart: D3D11_STENCIL_OP_INVERT/D3D12...
Definition: DepthStencilState.h:75
STENCIL_OP
Stencil operation.
Definition: DepthStencilState.h:48
#define DILIGENT_TYPED_ENUM(EnumName, EnumType)
Definition: CommonDefinitions.h:88
StencilOpDesc FrontFace
Identify stencil operations for the front-facing triangles, see Diligent::StencilOpDesc.
Definition: DepthStencilState.h:184
uint8_t Uint8
8-bit unsigned integer
Definition: BasicTypes.h:53
#define DILIGENT_BEGIN_NAMESPACE(Name)
Definition: CommonDefinitions.h:82
STENCIL_OP StencilPassOp
The stencil operation to perform when stencil testing and depth testing both pass....
Definition: DepthStencilState.h:110
@ COMPARISON_FUNC_ALWAYS
Comparison always passes. Direct3D counterpart: D3D11_COMPARISON_ALWAYS/D3D12_COMPARISON_FUNC_ALWAY...
Definition: GraphicsTypes.h:966
@ STENCIL_OP_DECR_SAT
Decrement the current stencil value, and clamp to 0. Direct3D counterpart: D3D11_STENCIL_OP_DECR_SAT...
Definition: DepthStencilState.h:71
Bool DepthEnable
Enable depth-stencil operations. When it is set to False, depth test always passes,...
Definition: DepthStencilState.h:162
Depth stencil state description.
Definition: DepthStencilState.h:157
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37