chore: update wgpu (#23684)

This commit is contained in:
Leo Kettmeir 2024-05-05 07:22:18 -07:00 committed by GitHub
parent b2628e4a06
commit cd12d41627
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 820 additions and 505 deletions

View file

@ -39,8 +39,7 @@ impl Resource for WebGpuTextureView {
}
fn close(self: Rc<Self>) {
let instance = &self.0;
gfx_select!(self.1 => instance.texture_view_drop(self.1, true)).unwrap();
gfx_select!(self.1 => self.0.texture_view_drop(self.1, true)).unwrap();
}
}
@ -84,7 +83,7 @@ pub fn op_webgpu_create_texture(
let (val, maybe_err) = gfx_select!(device => instance.device_create_texture(
device,
&descriptor,
()
None
));
let rid = state.resource_table.add(WebGpuTexture {
@ -129,6 +128,6 @@ pub fn op_webgpu_create_texture_view(
gfx_put!(texture => instance.texture_create_view(
texture,
&descriptor,
()
None
) => state, WebGpuTextureView)
}