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/command_encoder.rs | |
parent | b2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (diff) |
chore: update wgpu (#23684)
Diffstat (limited to 'ext/webgpu/command_encoder.rs')
-rw-r--r-- | ext/webgpu/command_encoder.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/webgpu/command_encoder.rs b/ext/webgpu/command_encoder.rs index 09ca6a221..3d82b77d4 100644 --- a/ext/webgpu/command_encoder.rs +++ b/ext/webgpu/command_encoder.rs @@ -23,8 +23,7 @@ impl Resource for WebGpuCommandEncoder { } fn close(self: Rc<Self>) { - let instance = &self.0; - gfx_select!(self.1 => instance.command_encoder_drop(self.1)); + gfx_select!(self.1 => self.0.command_encoder_drop(self.1)); } } @@ -39,8 +38,7 @@ impl Resource for WebGpuCommandBuffer { fn close(self: Rc<Self>) { if let Some(id) = *self.1.borrow() { - let instance = &self.0; - gfx_select!(id => instance.command_buffer_drop(id)); + gfx_select!(id => self.0.command_buffer_drop(id)); } } } @@ -63,7 +61,7 @@ pub fn op_webgpu_create_command_encoder( gfx_put!(device => instance.device_create_command_encoder( device, &descriptor, - () + None ) => state, WebGpuCommandEncoder) } @@ -493,7 +491,7 @@ pub fn op_webgpu_command_encoder_clear_buffer( command_encoder, destination_resource.1, offset, - std::num::NonZeroU64::new(size) + Some(size) )) } |