GPUCommandBuffer
注意:此功能在 Web Workers 中可用。
WebGPU API 中的 GPUCommandBuffer 接口代表一个预先录制好的 GPU 命令列表,可以提交给 GPUQueue 执行。
GPUCommandBuffer 是通过 GPUCommandEncoder.finish() 方法创建的;其中录制的 GPU 命令通过将 GPUCommandBuffer 作为参数传递给 GPUQueue.submit() 调用来提交执行。
注意:一旦 GPUCommandBuffer 对象被提交,它就不能再次使用。