diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-09-21 06:20:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-21 04:20:18 +0000 |
commit | 24ad2a05268ebc21b5ad127dac28d1e6f880512c (patch) | |
tree | e8338c9b9f0876f5896cc6ea13540a9c6edac6f5 /components/script/dom/gpudevice.rs | |
parent | 28d28d0a0a9c9ee2acf45593b9e6c0288857f0a9 (diff) | |
download | servo-24ad2a05268ebc21b5ad127dac28d1e6f880512c.tar.gz servo-24ad2a05268ebc21b5ad127dac28d1e6f880512c.zip |
chore: Update wgpu (#33506)
* Update wgpu
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* use all backends at runtime
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* clean up some adapter stuff
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* flakes
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/script/dom/gpudevice.rs')
-rw-r--r-- | components/script/dom/gpudevice.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/components/script/dom/gpudevice.rs b/components/script/dom/gpudevice.rs index ddf71100d61..c075894f374 100644 --- a/components/script/dom/gpudevice.rs +++ b/components/script/dom/gpudevice.rs @@ -216,18 +216,12 @@ impl GPUDevice { if let GPUPipelineLayoutOrGPUAutoLayoutMode::GPUPipelineLayout(ref layout) = layout { (Some(layout.id().0), None, layout.bind_group_layouts()) } else { - let layout_id = self - .global() - .wgpu_id_hub() - .create_pipeline_layout_id(self.device.0.backend()); + let layout_id = self.global().wgpu_id_hub().create_pipeline_layout_id(); let max_bind_grps = self.limits.MaxBindGroups(); let mut bgls = Vec::with_capacity(max_bind_grps as usize); let mut bgl_ids = Vec::with_capacity(max_bind_grps as usize); for _ in 0..max_bind_grps { - let bgl = self - .global() - .wgpu_id_hub() - .create_bind_group_layout_id(self.device.0.backend()); + let bgl = self.global().wgpu_id_hub().create_bind_group_layout_id(); bgls.push(webgpu::WebGPUBindGroupLayout(bgl)); bgl_ids.push(bgl); } |