diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2024-05-05 07:22:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 07:22:18 -0700 |
commit | cd12d416271e9e9fd0f00303525021f75688ff9f (patch) | |
tree | af1fd7a88590e37b09e61ae5a1aaeec4c325b907 /ext/webgpu/texture.rs | |
parent | b2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (diff) |
chore: update wgpu (#23684)
Diffstat (limited to 'ext/webgpu/texture.rs')
-rw-r--r-- | ext/webgpu/texture.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/webgpu/texture.rs b/ext/webgpu/texture.rs index 63dc7b090..44edd1a88 100644 --- a/ext/webgpu/texture.rs +++ b/ext/webgpu/texture.rs @@ -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) } |