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>
This commit is contained in:
Samson 2024-09-21 06:20:18 +02:00 committed by GitHub
parent 28d28d0a0a
commit 24ad2a0526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 206 additions and 361 deletions

View file

@ -85,10 +85,7 @@ impl GPUCommandEncoder {
device: &GPUDevice,
descriptor: &GPUCommandEncoderDescriptor,
) -> DomRoot<GPUCommandEncoder> {
let command_encoder_id = device
.global()
.wgpu_id_hub()
.create_command_encoder_id(device.id().0.backend());
let command_encoder_id = device.global().wgpu_id_hub().create_command_encoder_id();
device
.channel()
.0
@ -129,10 +126,7 @@ impl GPUCommandEncoderMethods for GPUCommandEncoder {
&self,
descriptor: &GPUComputePassDescriptor,
) -> DomRoot<GPUComputePassEncoder> {
let compute_pass_id = self
.global()
.wgpu_id_hub()
.create_compute_pass_id(self.device.id().0.backend());
let compute_pass_id = self.global().wgpu_id_hub().create_compute_pass_id();
if let Err(e) = self.channel.0.send(WebGPURequest::BeginComputePass {
command_encoder_id: self.id().0,
@ -197,10 +191,7 @@ impl GPUCommandEncoderMethods for GPUCommandEncoder {
}))
})
.collect::<Fallible<Vec<_>>>()?;
let render_pass_id = self
.global()
.wgpu_id_hub()
.create_render_pass_id(self.device.id().0.backend());
let render_pass_id = self.global().wgpu_id_hub().create_render_pass_id();
if let Err(e) = self.channel.0.send(WebGPURequest::BeginRenderPass {
command_encoder_id: self.id().0,