VertexLayoutDescriptor class

A complete, described vertex input layout: the buffer slots a pipeline reads from and the attributes each one feeds.

This is the engine-side description that replaces the two magic per-vertex byte counts with an explicit attribute set. It lowers to a gpu.VertexLayout via toGpuLayout (the flutter_gpu pipeline type, kept as the dumb lowering target), but adds value equality so identical layouts share one pipeline-cache identity. The canonical instance is kUnskinnedInstancedLayout.

Annotations

Constructors

VertexLayoutDescriptor({required List<VertexBufferDescriptor> buffers})
const

Properties

buffers List<VertexBufferDescriptor>
Vertex buffer slots; list position is the binding slot.
final
hashCode int
The hash code for this object.
no setteroverride
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
toGpuLayout() → VertexLayout
Lowers this description to the flutter_gpu pipeline layout, validating it first.
toString() String
A string representation of this object.
inherited

Operators

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