From 8d7ad15a3d6bb1cd59e5211d889387a7d26384d9 Mon Sep 17 00:00:00 2001 From: marc0246 <40955683+marc0246@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:16:50 +0100 Subject: [PATCH] Fix `RawRecordingCommandBuffer::end` being safe to call --- vulkano/src/command_buffer/sys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkano/src/command_buffer/sys.rs b/vulkano/src/command_buffer/sys.rs index e85b7d103d..26ebc82320 100644 --- a/vulkano/src/command_buffer/sys.rs +++ b/vulkano/src/command_buffer/sys.rs @@ -203,7 +203,7 @@ impl RawRecordingCommandBuffer { /// Ends the recording, returning a command buffer which can be submitted. #[inline] - pub fn end(self) -> Result { + pub unsafe fn end(self) -> Result { unsafe { let fns = self.device().fns(); (fns.v1_0.end_command_buffer)(self.handle())