pub unsafe fn reset(&self, logical_device: &ash::Device) -> Result<()> {
        logical_device
            .reset_command_pool(
                self.command_pool,
                vk::CommandPoolResetFlags::empty(),
            )
            .with_context(|| "unable to reset the command pool!")
    }
/// Reset all command buffers allocated by this pool.
///
/// # Unsafe Because
///
/// - the caller is responsible for ensuring that none of the command
///   buffers are still in use
Reset all command buffers allocated by this pool.
Reset all command buffers allocated by this pool .
pub unsafe fn reset(&self, logical_device: &ash::Device) -> Result<()> {
        logical_device
            .reset_command_pool(
                self.command_pool,
                vk::CommandPoolResetFlags::empty(),
            )
            .with_context(|| "unable to reset the command pool!")
    }
pub unsafe fn reset ( & self , logical_device : & ash :: Device ) -> Result < ( ) > { logical_device . reset_command_pool ( self . command_pool , vk :: CommandPoolResetFlags :: empty ( ) , ) . with_context ( | | " " ) }
Reset all command buffers allocated by this pool.
Reset all command buffers allocated by this pool .
&self
logical_device
&ash::Device
unsafe because
the caller is responsible for ensuring that none of the command
buffers are still in use
the caller is responsible for ensuring that none of the command buffers are still in use