Encodes one compute pass (set pipeline, set bind group, dispatch, end) onto an
existing command encoder — the shared building block behind runComputePass,
also used directly by routines that need several passes on one encoder (e.g.
strsv's blocked solve, where each pass depends on the previous one completing).
Parameters
commandEncoder: GPUCommandEncoder
pipeline: GPUComputePipeline
bindGroup: GPUBindGroup
workgroups: number|{x:number;y:number;z?:number}
workgroup count;
number for 1D dispatch, {x, y} for 2D, {x, y, z} for 3D (z defaults to 1)
OptionalpassDescriptor: object
passed to beginComputePass, e.g. for timestamp writes
Encodes one compute pass (set pipeline, set bind group, dispatch, end) onto an existing command encoder — the shared building block behind
runComputePass, also used directly by routines that need several passes on one encoder (e.g. strsv's blocked solve, where each pass depends on the previous one completing).