API

Interface StorageBuffer

A GPU storage allocation exposed without leaking its WebGPU handle.

interface StorageBuffer {
    "[storageBufferBrand]": true;
    byteLength: number;
}
Index
"[storageBufferBrand]": true

Opaque nominal brand.

byteLength: number

Writable capacity in bytes, padded to WebGPU's four-byte alignment.