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/shader.rs | |
parent | b2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (diff) |
chore: update wgpu (#23684)
Diffstat (limited to 'ext/webgpu/shader.rs')
-rw-r--r-- | ext/webgpu/shader.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/webgpu/shader.rs b/ext/webgpu/shader.rs index 0ba478ee4..0b3991c5d 100644 --- a/ext/webgpu/shader.rs +++ b/ext/webgpu/shader.rs @@ -20,8 +20,7 @@ impl Resource for WebGpuShaderModule { } fn close(self: Rc<Self>) { - let instance = &self.0; - gfx_select!(self.1 => instance.shader_module_drop(self.1)); + gfx_select!(self.1 => self.0.shader_module_drop(self.1)); } } @@ -50,6 +49,6 @@ pub fn op_webgpu_create_shader_module( device, &descriptor, source, - () + None ) => state, WebGpuShaderModule) } |