diff options
Diffstat (limited to 'components/script/dom/gpudevice.rs')
-rw-r--r-- | components/script/dom/gpudevice.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/gpudevice.rs b/components/script/dom/gpudevice.rs index ba9f22b5fec..6a4301124b9 100644 --- a/components/script/dom/gpudevice.rs +++ b/components/script/dom/gpudevice.rs @@ -98,7 +98,6 @@ impl GPUDevice { } } - #[allow(unsafe_code)] pub fn new( global: &GlobalScope, channel: WebGPU, @@ -647,7 +646,13 @@ impl GPUDeviceMethods for GPUDevice { let encoder = webgpu::WebGPUCommandEncoder(command_encoder_id); - GPUCommandEncoder::new(&self.global(), self.channel.clone(), encoder, true) + GPUCommandEncoder::new( + &self.global(), + self.channel.clone(), + self.device, + encoder, + true, + ) } /// https://gpuweb.github.io/gpuweb/#dom-gpudevice-createtexture |