aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpubuffer.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/gpubuffer.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/gpubuffer.rs')
-rw-r--r--components/script/dom/gpubuffer.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/gpubuffer.rs b/components/script/dom/gpubuffer.rs
index d90a37b559d..efcb08558b6 100644
--- a/components/script/dom/gpubuffer.rs
+++ b/components/script/dom/gpubuffer.rs
@@ -142,10 +142,7 @@ impl GPUBuffer {
usage: wgt::BufferUsages::from_bits_retain(descriptor.usage),
mapped_at_creation: descriptor.mappedAtCreation,
};
- let id = device
- .global()
- .wgpu_id_hub()
- .create_buffer_id(device.id().0.backend());
+ let id = device.global().wgpu_id_hub().create_buffer_id();
device
.channel()