VkStencilOp - Stencil comparison function
Description
STENCIL_OP_KEEP keeps the current value.
STENCIL_OP_ZERO sets the value to 0.
STENCIL_OP_REPLACE sets the value to
reference.STENCIL_OP_INCREMENT_AND_CLAMP increments the current value and clamps to the maximum representable unsigned value.
STENCIL_OP_DECREMENT_AND_CLAMP decrements the current value and clamps to 0.
STENCIL_OP_INVERT bitwise-inverts the current value.
STENCIL_OP_INCREMENT_AND_WRAP increments the current value and wraps to 0 when the maximum value would have been exceeded.
STENCIL_OP_DECREMENT_AND_WRAP decrements the current value and wraps to the maximum possible value when the value would go below 0.
For purposes of increment and decrement, the stencil bits are considered as an unsigned integer.
See Also
VK_VERSION_1_0, StencilOpState, cmdSetStencilOp, cmdSetStencilOp
Instances6Eq, Ord, Read, Show, Storable, Zero
Eq StencilOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.StencilOpOrd StencilOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.StencilOpRead StencilOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.StencilOpShow StencilOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.StencilOpStorable StencilOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.StencilOpZero StencilOpDefined in vulkan-3.27 · Vulkan.Core10.Enums.StencilOp