GPUVertexBufferLayout constructor

GPUVertexBufferLayout({
  1. required int arrayStride,
  2. GPUVertexStepMode? stepMode,
  3. Iterable<GPUVertexAttribute>? attributes,
})

Implementation

factory GPUVertexBufferLayout(
        {required int arrayStride,
        GPUVertexStepMode? stepMode,
        Iterable<GPUVertexAttribute>? attributes}) =>
    GPUVertexBufferLayout._(
        arrayStride: arrayStride,
        stepMode: stepMode?.value ?? GPUVertexStepMode.vertex.value,
        attributes: attributes ?? undefined);