new Storage(options: StorageOptions): Storage
binding: number
bufferOptions: { type: "storage" | "read-only-storage";}
canvas: HTMLCanvasElement
canvasFormat: GPUTextureFormat
context: GPUCanvasContext
cpuBuffer: ArrayType
gpuBuffer: GPUBuffer
label: string
usage: number
visibility: number
getDevice(): Promise<GPUDevice>
setCanvas(canvas: HTMLCanvasElement): void
setCpuBuffer(buffer: ArrayType): Promise<void>
setDevice(d: GPUDevice): void
setLabel(label: string): void
updateGpuBuffer(): Promise<void>
You are viewing the beta docs. You may find the legacy docs more helpful.