VertexBuffer constructor

const VertexBuffer({
  1. required int strideInBytes,
  2. required List<VertexAttribute> attributes,
  3. VertexStepMode stepMode = VertexStepMode.vertex,
})

Creates a vertex buffer slot description with the given per-element strideInBytes and the list of attributes that the vertex shader reads from this buffer.

Implementation

const VertexBuffer({
  required this.strideInBytes,
  required this.attributes,
  this.stepMode = VertexStepMode.vertex,
});