Defines the values to use for specifying stencil actions.

A stencil action specifies how the values in the stencil buffer should be changed.

Variables

inline read onlyDECREMENT_SATURATE:Context3DStencilAction = 0

Decrement the stencil buffer value, clamping at 0, the minimum value.

inline read onlyDECREMENT_WRAP:Context3DStencilAction = 1

Decrement the stencil buffer value. If the result is less than 0, the minimum value, then the buffer value is "wrapped around" to 255.

inline read onlyINCREMENT_SATURATE:Context3DStencilAction = 2

Increment the stencil buffer value, clamping at 255, the maximum value.

inline read onlyINCREMENT_WRAP:Context3DStencilAction = 3

Increment the stencil buffer value. If the result exceeds 255, the maximum value, then the buffer value is "wrapped around" to 0.

inline read onlyINVERT:Context3DStencilAction = 4

Invert the stencil buffer value, bitwise.

For example, if the 8-bit binary number in the stencil buffer is: 11110000, then the value is changed to: 00001111.

inline read onlyKEEP:Context3DStencilAction = 5

Keep the current stencil buffer value.

inline read onlySET:Context3DStencilAction = 6

Replace the stencil buffer value with the reference value.

inline read onlyZERO:Context3DStencilAction = 7

Set the stencil buffer value to 0.