Buffer constructor
GPUBufferDescriptor | 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
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 options previously set before creating the GPUBuffer.
Set the GPUBuffer. This allows to use a Buffer with a GPUBuffer created separately.
GPU buffer to use.
Used as a wrapper around GPUBuffer.
Useful to keep tracks of all the GPUBuffer created thanks to the uuid property.