From 58836244a44a080e08c68222cc9d6b731b26162c Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Wed, 20 Apr 2022 09:19:22 -0700 Subject: [PATCH] Change signature of ComputePass::end() to self As per review comment. --- piet-gpu-hal/src/hub.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piet-gpu-hal/src/hub.rs b/piet-gpu-hal/src/hub.rs index 5c7122a..6940b24 100644 --- a/piet-gpu-hal/src/hub.rs +++ b/piet-gpu-hal/src/hub.rs @@ -743,7 +743,7 @@ impl<'a> ComputePass<'a> { .dispatch(pipeline, descriptor_set, workgroup_count, workgroup_size); } - pub unsafe fn end(&mut self) { + pub unsafe fn end(self) { self.cmd_buf.cmd_buf().end_compute_pass(); } }