GeezerVison is showing developer.mozilla.org — GPUCommandBuffer - Web APIs | MDN
GPUCommandBuffer
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more browser support for this feature? Tell us why.
The GPUCommandBuffer interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
A 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 GPUQueue.submit() call.
Note:
Once a GPUCommandBuffer object has been submitted, it cannot be used again.
label
-
A string providing a label that can be used to identify the object, for example in GPUError messages or console warnings.
js
// …
const commandBuffer = commandEncoder.finish();
device.queue.submit([commandBuffer]);