Describes stencil operations that are performed based on the results of depth test. More...
#include <DepthStencilState.h>
Public Member Functions | |
constexpr bool | operator== (const StencilOpDesc &rhs) const |
Tests if two structures are equivalent. | |
Describes stencil operations that are performed based on the results of depth test.
The structure generally mirrors D3D11_DEPTH_STENCILOP_DESC/D3D12_DEPTH_STENCILOP_DESC structure. It is used by Diligent::DepthStencilStateDesc structure to describe the stencil operations for the front and back facing polygons.
STENCIL_OP Diligent::StencilOpDesc::StencilDepthFailOp = STENCIL_OP_KEEP |
The stencil operation to perform when stencil testing passes and depth testing fails. Default value: Diligent::STENCIL_OP_KEEP.
STENCIL_OP Diligent::StencilOpDesc::StencilFailOp = STENCIL_OP_KEEP |
The stencil operation to perform when stencil testing fails. Default value: Diligent::STENCIL_OP_KEEP.
COMPARISON_FUNCTION Diligent::StencilOpDesc::StencilFunc = COMPARISON_FUNC_ALWAYS |
A function that compares stencil data against existing stencil data. Default value: Diligent::COMPARISON_FUNC_ALWAYS. See Diligent::COMPARISON_FUNCTION.
STENCIL_OP Diligent::StencilOpDesc::StencilPassOp = STENCIL_OP_KEEP |
The stencil operation to perform when stencil testing and depth testing both pass. Default value: Diligent::STENCIL_OP_KEEP.