aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpurenderbundleencoder.rs
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-09-21 06:20:18 +0200
committerGitHub <noreply@github.com>2024-09-21 04:20:18 +0000
commit24ad2a05268ebc21b5ad127dac28d1e6f880512c (patch)
treee8338c9b9f0876f5896cc6ea13540a9c6edac6f5 /components/script/dom/gpurenderbundleencoder.rs
parent28d28d0a0a9c9ee2acf45593b9e6c0288857f0a9 (diff)
downloadservo-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/gpurenderbundleencoder.rs')
-rw-r--r--components/script/dom/gpurenderbundleencoder.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/gpurenderbundleencoder.rs b/components/script/dom/gpurenderbundleencoder.rs
index bc05a678f17..9a494a1d628 100644
--- a/components/script/dom/gpurenderbundleencoder.rs
+++ b/components/script/dom/gpurenderbundleencoder.rs
@@ -143,7 +143,7 @@ impl GPURenderBundleEncoderMethods for GPURenderBundleEncoder {
wgpu_bundle::wgpu_render_bundle_set_bind_group(
encoder,
index,
- bind_group.id().0,
+ Some(bind_group.id().0),
dynamic_offsets.as_ptr(),
dynamic_offsets.len(),
)
@@ -255,10 +255,7 @@ impl GPURenderBundleEncoderMethods for GPURenderBundleEncoder {
label: (&descriptor.parent).into(),
};
let encoder = self.render_bundle_encoder.borrow_mut().take().unwrap();
- let render_bundle_id = self
- .global()
- .wgpu_id_hub()
- .create_render_bundle_id(self.device.id().0.backend());
+ let render_bundle_id = self.global().wgpu_id_hub().create_render_bundle_id();
self.channel
.0