VertexAttribute constructor

const VertexAttribute({
  1. required String name,
  2. required VertexFormat format,
  3. int offsetInBytes = 0,
})

Creates a vertex attribute description bound to the shader-side input named name, reading its data in the given format starting at byte offsetInBytes into each element of the owning vertex buffer.

Implementation

const VertexAttribute({
  required this.name,
  required this.format,
  this.offsetInBytes = 0,
});