SortMode enum
How a sub-list of draws is ordered.
Modes rather than one hardcoded policy, following PlayCanvas: the right order depends on what is being drawn, and the caller knows that better than the renderer does.
Values
- stateThenDepth → const SortMode
-
Group by pipeline, then material, then near-to-far. The default for opaque geometry: it minimises pipeline changes, which here are the most expensive state change there is.
- backToFront → const SortMode
-
Far-to-near. Required for correct alpha blending.
- frontToBack → const SortMode
-
Near-to-far, to let early-z reject more fragments.
- manual → const SortMode
-
Respect only
Material.drawBucket, leaving the rest in submission order. - none → const SortMode
-
Submission order.
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