Optional
sizeThe size of the buffer in bytes.
Optional
labelThe label of the GPUBuffer, useful for debugging purpose.
Optional
usageAllowed usages for the GPUBuffer as an array of buffer usages names
Optional
mappedWhether to create the GPUBuffer in an already mapped state. See mappedAtCreation (WebGPU API reference).
Parameters used to create a Buffer.