Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for GPUComputePassEncoder: dispatchWorkgroups() method.
Developer library 6
WebGPU API
pass encoder is created using GPUCommandEncoder.beginComputePass(). When issuing the commands, we specify the pipeline to use in the same way as before, using GPUComputePassEncoder.setPipeline(). We then however use GPUComputePassEncoder.setBindGroup() to specify that we want to use our `bindGroup` to specify the data to use in the calculation, and GPUComputePassEncoder.dispatchWorkgroups() to specify the number of
GPUComputePassEncoder
WebGPU API The **`GPUComputePassEncoder`** interface 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. A compute pipeline contains a single compute stage in which a compute shader takes general data, processes it in parallel across a specified number of workgroups, then returns
GPUComputePassEncoder: pushDebugGroup() method
WebGPU API The **`pushDebugGroup()`** method of the GPUComputePassEncoder interface begins a compute pass debug group, which is marked with a specified label, and will contain all subsequent encoded commands up until a popDebugGroup() method is invoked. This could be used for telemetry, or may be utilized in GPUError messages, browser dev tools, or other services in the future to help with debugging. ## Syntax ``
GPUComputePassEncoder: setPipeline() method
WebGPU API The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass. ## Syntax ```js-nolint setPipeline(pipeline) ``` ### Parameters - `pipeline` - : The GPUComputePipeline to use for this compute pass. ### Return value None (undefined). ## Examples In our [basic compute demo](https://mdn.github.io/dom-examples/webgpu-compute-demo/), sev
GPUComputePassEncoder: setBindGroup() method
WebGPU API The **`setBindGroup()`** method of the GPUComputePassEncoder interface sets the GPUBindGroup to use for subsequent compute commands, for a given index. ## Syntax ```js-nolint setBindGroup(index, bindGroup) setBindGroup(index, bindGroup, dynamicOffsets) setBindGroup(index, bindGroup, dynamicOffsets, dynamicOffsetsStart, dynamicOffsetsLength) ``` ### Parameters - `index` - : The index to
GPUComputePassEncoder: dispatchWorkgroups() method
WebGPU API 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()). ## Syntax ```js-nolint dispatchWorkgroups(workgroupCountX) dispatchWorkgroups(workgroupCountX, workgroupCountY) dispatchWorkgroups(workgroupCountX, workgroupCountY, workg