diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2025-02-16 19:24:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-16 18:24:13 +0000 |
commit | 0e9bebce0f12ae03fed271fc4d8e7704326ccf54 (patch) | |
tree | 7347ecae0e54b94cc418593866f473816045a78e /components/script/dom/webgpu | |
parent | 34c73fb452e960ecef3b0488476e7ec2a64eba00 (diff) | |
download | servo-0e9bebce0f12ae03fed271fc4d8e7704326ccf54.tar.gz servo-0e9bebce0f12ae03fed271fc4d8e7704326ccf54.zip |
chore: Update wgpu (#35503)
* Update wgpu
https://github.com/gfx-rs/wgpu/commit/d8833d079833c62b4fd00325d0ba08ec0c8bc309
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* fix tidy
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/webgpu')
-rw-r--r-- | components/script/dom/webgpu/gpuconvert.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/components/script/dom/webgpu/gpuconvert.rs b/components/script/dom/webgpu/gpuconvert.rs index d83d1e86dfa..fbc507a45ee 100644 --- a/components/script/dom/webgpu/gpuconvert.rs +++ b/components/script/dom/webgpu/gpuconvert.rs @@ -639,12 +639,11 @@ impl<'a> Convert<ProgrammableStageDescriptor<'a>> for &GPUProgrammableStage { .entryPoint .as_ref() .map(|ep| Cow::Owned(ep.to_string())), - constants: Cow::Owned( - self.constants - .as_ref() - .map(|records| records.iter().map(|(k, v)| (k.0.clone(), **v)).collect()) - .unwrap_or_default(), - ), + constants: self + .constants + .as_ref() + .map(|records| records.iter().map(|(k, v)| (k.0.clone(), **v)).collect()) + .unwrap_or_default(), zero_initialize_workgroup_memory: true, } } @@ -659,7 +658,7 @@ impl<'a> Convert<BindGroupEntry<'a>> for &GPUBindGroupEntry { GPUBindingResource::GPUTextureView(ref t) => BindingResource::TextureView(t.id().0), GPUBindingResource::GPUBufferBinding(ref b) => { BindingResource::Buffer(BufferBinding { - buffer_id: b.buffer.id().0, + buffer: b.buffer.id().0, offset: b.offset, size: b.size.and_then(wgt::BufferSize::new), }) |