StencilOperation enum

What happens to a stencil value once the stencil and depth tests have decided a fragment's fate.

One operation is chosen for each of the three outcomes — see StencilState — and the value it produces is masked by the write mask before it lands. Names and order are flutter_gpu's, for the reason the library docstring gives.

Inheritance
Available extensions

Values

keep → const StencilOperation

Leaves the stored value alone.

zero → const StencilOperation

Stores zero.

setToReferenceValue → const StencilOperation

Stores the reference value set by PassEncoder.setStencilReference.

incrementClamp → const StencilOperation

Adds one, and stays at the maximum rather than wrapping.

decrementClamp → const StencilOperation

Subtracts one, and stays at zero rather than wrapping.

invert → const StencilOperation

Flips every bit.

incrementWrap → const StencilOperation

Adds one, and wraps to zero past the maximum.

decrementWrap → const StencilOperation

Subtracts one, and wraps to the maximum past zero.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<StencilOperation>
A constant List of the values in this enum, in order of their declaration.