Documentation
    Preparing search index...

    Variable GPU_BUFFER_USAGEConst

    GPU_BUFFER_USAGE: Readonly<
        {
            COPY_DST: 8;
            COPY_SRC: 4;
            INDEX: 16;
            MAP_READ: 1;
            QUERY_RESOLVE: 512;
            STORAGE: 128;
            UNIFORM: 64;
            VERTEX: 32;
        },
    >

    Bit flags for GpuBufferDescriptor.usage, from the WebGPU specification's GPUBufferUsage namespace.

    Written out rather than read off a global for the reason GL in the WebGL backend is written out: the values are normative constants of a published specification, and reading them from globalThis.GPUBufferUsage would make the backend un-testable in Node — where that global does not exist — for no gain at all.