BufferLayout class final

One buffer's worth of attributes, and how far apart its elements are.

Constructors

BufferLayout({required int strideInBytes, required List<InputAttribute> attributes, VertexStepMode stepMode = VertexStepMode.vertex})
Creates the layout of one buffer whose elements are strideInBytes apart, stepping per vertex by default.
const

Properties

attributes → List<InputAttribute>
The attributes each element holds.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepMode → VertexStepMode
Whether the buffer advances per vertex or per instance; per vertex by default.
final
strideInBytes → int
Bytes from one element to the next. Not derived from the attributes, because padding is legitimate and a stride computed by summing sizes would silently disagree with a buffer that has any.
final

Methods

checkFeatures(DeviceFeatures features, {required String backend}) → void
Throws UnsupportedCapabilityException when a field (or an attribute's format) needs a feature features lacks. Nothing does at 1.0.0, so it throws nothing yet.
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