GPUCommandBuffer
注意:此功能在 Web Workers 中可用。
WebGPU API 中的 GPUCommandBuffer 介面代表一個預先錄製好的 GPU 命令列表,可以提交給 GPUQueue 執行。
GPUCommandBuffer 是透過 GPUCommandEncoder.finish() 方法建立的;其中錄製的 GPU 命令透過將 GPUCommandBuffer 作為引數傳遞給 GPUQueue.submit() 呼叫來提交執行。
注意:一旦 GPUCommandBuffer 物件被提交,它就不能再次使用。