VertexStepMode enum

Controls how a VertexBuffer advances through its elements while drawing.

The step mode is a property of the buffer slot, not of an individual attribute. All attributes in the same VertexBuffer advance together.

Inheritance
Available extensions

Values

vertex → const VertexStepMode

Advance to the next buffer element for each vertex.

This is the default mode and is appropriate for ordinary mesh data such as positions, normals, texture coordinates, and vertex colors. During an instanced draw, a vertex-rate buffer supplies the same sequence of vertex elements to every instance.

instance → const VertexStepMode

Advance to the next buffer element for each instance.

Use this for per-instance data such as an object offset, transform, or tint color. During a draw with instanceCount: n, the first instance reads element 0 from this buffer, the second instance reads element 1, and so on.

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<VertexStepMode>
A constant List of the values in this enum, in order of their declaration.