GPUVertexAttribute constructor

GPUVertexAttribute({
  1. required GPUVertexFormat format,
  2. required int offset,
  3. required int shaderLocation,
})

Implementation

factory GPUVertexAttribute(
        {required GPUVertexFormat format,
        required int offset,
        required int shaderLocation}) =>
    GPUVertexAttribute._(
        format: format.value, offset: offset, shaderLocation: shaderLocation);