aboutsummaryrefslogtreecommitdiffstats
path: root/components/webgpu/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/webgpu/lib.rs')
-rw-r--r--components/webgpu/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/webgpu/lib.rs b/components/webgpu/lib.rs
index 944edcfa461..cbfe4cd161e 100644
--- a/components/webgpu/lib.rs
+++ b/components/webgpu/lib.rs
@@ -185,6 +185,7 @@ pub enum WebGPURequest {
},
DestroyTexture(id::TextureId),
Exit(IpcSender<()>),
+ FreeCommandBuffer(id::CommandBufferId),
FreeDevice(id::DeviceId),
RenderBundleEncoderFinish {
render_bundle_encoder: RenderBundleEncoder,
@@ -856,6 +857,9 @@ impl<'a> WGPU<'a> {
}
return;
},
+ WebGPURequest::FreeCommandBuffer(command_buffer_id) => {
+ self.error_command_buffers.remove(&command_buffer_id);
+ },
WebGPURequest::FreeDevice(device_id) => {
let device = WebGPUDevice(device_id);
let pipeline_id = self.devices.remove(&device).unwrap();