summaryrefslogtreecommitdiff
path: root/ext/webgpu/sampler.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-05-05 07:22:18 -0700
committerGitHub <noreply@github.com>2024-05-05 07:22:18 -0700
commitcd12d416271e9e9fd0f00303525021f75688ff9f (patch)
treeaf1fd7a88590e37b09e61ae5a1aaeec4c325b907 /ext/webgpu/sampler.rs
parentb2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (diff)
chore: update wgpu (#23684)
Diffstat (limited to 'ext/webgpu/sampler.rs')
-rw-r--r--ext/webgpu/sampler.rs5
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)
}