VertexAttributeDescriptor class

A described vertex attribute: the shader input it feeds (by name), its element format, and its byte offsetInBytes within the owning buffer's per-element stride.

This is the engine-side, value-equal description of a single attribute. It lowers to a gpu.VertexAttribute (the flutter_gpu pipeline type) but, unlike that type, compares by value so two structurally identical layouts can be interned to one identity (see vertexLayoutId).

Annotations

Constructors

VertexAttributeDescriptor({required String name, required VertexFormat format, int offsetInBytes = 0})
const

Properties

format → VertexFormat
Format of each element of this attribute.
final
hashCode → int
The hash code for this object.
no setteroverride
name → String
Name of the shader-side input this attribute feeds (e.g. position). flutter_gpu binds vertex attributes by name, so this must match the vertex shader's in declaration.
final
offsetInBytes → int
Byte offset of this attribute from the start of each element of the owning VertexBufferDescriptor.
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.
inherited

Operators

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