VertexLayout class final
A complete vertex input layout: zero or more vertex buffer slots and the attributes that read from each one.
Pass an instance of this class to GpuContext.createRenderPipeline to
override the default interleaved layout that the shader bundle declares
(e.g. to bind position and color attributes from separate buffers, or to
consume a structure-of-arrays mesh without converting to interleaved
form on the CPU).
Constructors
-
VertexLayout({required List<
VertexBuffer> buffers}) -
Creates a vertex input layout that reads from the given
buffers.const
Properties
-
buffers
→ List<
VertexBuffer> -
Vertex buffer slots this layout uses. Each buffer's position in this
list determines the binding slot it must be bound to via
RenderPass.bindVertexBuffer before drawing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited