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/sampler.rs | |
parent | b2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (diff) |
chore: update wgpu (#23684)
Diffstat (limited to 'ext/webgpu/sampler.rs')
-rw-r--r-- | ext/webgpu/sampler.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/webgpu/sampler.rs b/ext/webgpu/sampler.rs index dcd8e1c70..27c36802e 100644 --- a/ext/webgpu/sampler.rs +++ b/ext/webgpu/sampler.rs @@ -21,8 +21,7 @@ impl Resource for WebGpuSampler { } fn close(self: Rc<Self>) { - let instance = &self.0; - gfx_select!(self.1 => instance.sampler_drop(self.1)); + gfx_select!(self.1 => self.0.sampler_drop(self.1)); } } @@ -75,6 +74,6 @@ pub fn op_webgpu_create_sampler( gfx_put!(device => instance.device_create_sampler( device, &descriptor, - () + None ) => state, WebGpuSampler) } |