Buffer constructors
parameters used to create our Buffer
The type of the Buffer
The universal unique id of the Buffer
Options used to create this Buffer, also used as GPUBufferDescriptor (WebGPU API reference).
The actual GPUBuffer after having been created.
A Set to store this Buffer consumers (usually Geometry uuid or BindGroup uuid)
Allow to dynamically set the size of the GPUBuffer.
Reset the GPUBuffer value to null
.
Create a GPUBuffer based on the descriptor stored in the Buffer options.
optional way to update the Buffer options previously set before creating the GPUBuffer.
Map the GPUBuffer and put a copy of the data into a Float32Array.
Used as a wrapper around GPUBuffer.
Useful to keep tracks of all the GPUBuffer created thanks to the uuid property.