StencilOperationΒΆ

enum StencilOperation : System.Enum, System.IComparable, System.IFormattable, System.IConvertible

Defines stencil buffer operations.

StencilOperation Keep

Does not update the stencil buffer entry.

StencilOperation Zero

Sets the stencil buffer entry to 0.

StencilOperation Replace

Replaces the stencil buffer entry with a reference value.

StencilOperation Increment

Increments the stencil buffer entry, wrapping to 0 if the new value exceeds the maximum value.

StencilOperation Decrement

Decrements the stencil buffer entry, wrapping to the maximum value if the new value is less than 0.

StencilOperation IncrementSaturation

Increments the stencil buffer entry, clamping to the maximum value.

StencilOperation DecrementSaturation

Decrements the stencil buffer entry, clamping to 0.

StencilOperation Invert

Inverts the bits in the stencil buffer entry.