VertexAttribute class final

Describes a single vertex attribute.

A vertex buffer is bound as one opaque blob and the actual layout is taken from the order of in declarations in the vertex shader. The layout is therefore a contract between shader and CPU-side geometry that nothing validates for us. VertexLayout at least makes it explicit and keeps it in one place.

Constructors

VertexAttribute(String name, int componentCount)
An attribute named name of componentCount floats.
const

Properties

componentCount → int
Number of float components.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Must match the name of the in variable in the shader.
final
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.
override

Operators

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