diff options
Diffstat (limited to 'components/webgpu/wgpu_thread.rs')
-rw-r--r-- | components/webgpu/wgpu_thread.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/webgpu/wgpu_thread.rs b/components/webgpu/wgpu_thread.rs index ce0303aaba7..8ca979670b2 100644 --- a/components/webgpu/wgpu_thread.rs +++ b/components/webgpu/wgpu_thread.rs @@ -664,7 +664,8 @@ impl WGPU { limits, channel: WebGPU(self.sender.clone()), } - }); + }) + .map_err(|err| err.to_string()); if let Err(e) = sender.send(Some(response)) { warn!( @@ -686,6 +687,7 @@ impl WGPU { required_features: descriptor.required_features, required_limits: descriptor.required_limits.clone(), memory_hints: MemoryHints::MemoryUsage, + trace: wgpu_types::Trace::Off, }; let global = &self.global; let device = WebGPUDevice(device_id); @@ -694,7 +696,6 @@ impl WGPU { .adapter_request_device( adapter_id.0, &desc, - None, Some(device_id), Some(queue_id), ) @@ -733,7 +734,8 @@ impl WGPU { }); global.device_set_device_lost_closure(device_id, callback); descriptor - }); + }) + .map_err(Into::into); if let Err(e) = sender.send((device, queue, result)) { warn!( "Failed to send response to WebGPURequest::RequestDevice ({})", |