pub enum StencilOp {
Keep,
Zero,
Replace,
IncrementAndClamp,
DecrementAndClamp,
Invert,
IncrementAndWrap,
DecrementAndWrap,
}
Expand description
Defines what operation should be peformed on value in stencil buffer.
Variants§
Keep
Keep the current value.
Zero
Write 0.
Replace
Replace value with reference value.
IncrementAndClamp
Increment value and clamp it to maximum value representable in stencil buffer format.
DecrementAndClamp
Decrement value and clamp to 0.
Invert
Invert all bits.
IncrementAndWrap
Increment value and wrap to 0 if maximum value representable in stencil buffer format would be exeeded.
DecrementAndWrap
Decrement value and wraps to maximum value representable in stencil buffer format if value would go below 0.