Documentation
    Preparing search index...

    Interface ComputePassOptions

    Options of ComputePass — §82's example shape.

    interface ComputePassOptions {
        bindings?: ComputePassBindings;
        entryPoint?: string;
        label?: string;
        shader: string;
        workgroups: readonly [number, number, number];
    }
    Index

    The storage buffers; omitted means a binding-less kernel.

    entryPoint?: string

    The kernel's entry point; the backend's default when omitted.

    label?: string

    Diagnostic name, echoed on backend pass and pipeline labels.

    shader: string

    The compute kernel, as shader source (WGSL on the WebGPU backend).

    workgroups: readonly [number, number, number]

    Workgroup counts along x, y, z — §82's workgroups: [1024, 1, 1].