GPUBufferDescriptor constructor

GPUBufferDescriptor({
  1. int size,
  2. int usage,
  3. bool mappedAtCreation,
  4. String label,
})

usage is a bitwise or of GpuBufferUsage values, and size must be a multiple of four whenever mappedAtCreation is set.

Implementation

external factory GPUBufferDescriptor({
  int size,
  int usage,
  bool mappedAtCreation,
  String label,
});