Hilo3d API - v2.0.0
    Preparing search index...

    Interface StorageBufferDescriptor

    Creation options for a renderer-owned WebGPU storage buffer.

    interface StorageBufferDescriptor {
        byteLength: number;
        initialData?: ArrayBuffer | ArrayBufferView<ArrayBufferLike>;
        label?: string;
        recovery?: StorageBufferRecoveryPolicy;
        usage: readonly StorageBufferUsage[];
    }
    Index
    byteLength: number

    Allocation size in bytes; must be positive and four-byte aligned.

    initialData?: ArrayBuffer | ArrayBufferView<ArrayBufferLike>

    Initial bytes copied into the CPU recovery shadow; remaining bytes start at zero.

    label?: string

    Optional diagnostic label.

    Device-loss content policy. Defaults to cpu-shadow.

    usage: readonly StorageBufferUsage[]

    Intended roles. storage is mandatory and each role may appear only once.