chore: Update wgpu (#35503)

* Update wgpu

d8833d0798
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>
This commit is contained in:
Samson 2025-02-16 19:24:13 +01:00 committed by GitHub
parent 34c73fb452
commit 0e9bebce0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 32 additions and 634 deletions

View file

@ -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),
})