VertexBufferDescriptor class

One vertex buffer slot: its per-element strideInBytes, how it advances while drawing (stepMode), and the attributes read from it. The buffer's position in VertexLayoutDescriptor.buffers is its binding slot.

Lowers to a gpu.VertexBuffer; compares by value.

Annotations

Constructors

VertexBufferDescriptor({required int strideInBytes, required List<VertexAttributeDescriptor> attributes, VertexStepMode stepMode = gpu.VertexStepMode.vertex})
const

Properties

attributes List<VertexAttributeDescriptor>
Attributes read from this slot by the vertex shader.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepMode VertexStepMode
Whether this slot advances per vertex or per instance.
final
strideInBytes int
Byte distance from the start of one element to the start of the next.
final

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.
override