StencilOp defines how the stencil buffer gets updated.
- See:
Properties:
Name | Type | Description |
---|---|---|
KEEP |
Keeps the existing stencil value. |
|
ZERO |
Sets the stencil value to 0. |
|
REPLACE |
Replaces the stencil value with the reference value. |
|
INCREMENT |
Increments the current stencil buffer value. Clamps to the maximum representable unsigned value. |
|
INCREMENT_WRAP |
Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing the maximum representable unsigned value. |
|
DECREMENT |
Decrements the current stencil buffer value. Clamps to 0. |
|
DECREMENT_WRAP |
Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable unsigned value when decrementing a stencil buffer value of zero. |
|
INVERT |
Bitwise inverts the current stencil buffer value. |