GPUCommandBuffer is created via the
GPUCommandEncoder.finish() method; the GPU commands recorded within are submitted for execution by passing the
GPUCommandBuffer into the parameter of a
Note: Once a
GPUCommandBuffer object has been submitted, it cannot be used again.
// ... const commandBuffer = commandEncoder.finish(); device.queue.submit([commandBuffer]);
Note: Study the WebGPU samples to find complete examples.
BCD tables only load in the browser
- The WebGPU API