OptionalsizeThe size of the buffer in bytes.
OptionallabelThe label of the GPUBuffer, useful for debugging purpose.
OptionalusageAllowed usages for the GPUBuffer as an array of buffer usages names
OptionalmappedWhether to create the GPUBuffer in an already mapped state. See mappedAtCreation (WebGPU API reference).
Parameters used to create a Buffer.