The dispatchWorkgroups() method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
OptionalworkgroupCountY: numberOptionalworkgroupCountZ: numberThe dispatchWorkgroupsIndirect() method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
The end() method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
OptionaldynamicOffsets: number[]OptionaldynamicOffsets: Iterable<number, any, any>The setPipeline() method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
The
GPUComputePassEncoderinterface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder. Available only in secure contexts.MDN Reference