pub unsafe fn free_command_buffer(
        &self,
        logical_device: &ash::Device,
        command_buffer: vk::CommandBuffer,
    ) {
        let buffers = [command_buffer];
        logical_device.free_command_buffers(self.command_pool, &buffers);
    }
/// Free a command buffer's resources to be used by the pool again.
///
/// # Unsafe Because
///
/// - the caller is responsible for ensuring that the command buffer is
///   not being used anymore
/// - only command buffers created by previous calls to
///   [Self::allocate_command_buffer] on this instance can be passed to
///   this function
Free a command buffer's resources to be used by the pool again.
Free a command buffer ' s resources to be used by the pool again .
pub unsafe fn free_command_buffer(
        &self,
        logical_device: &ash::Device,
        command_buffer: vk::CommandBuffer,
    ) {
        let buffers = [command_buffer];
        logical_device.free_command_buffers(self.command_pool, &buffers);
    }
pub unsafe fn free_command_buffer ( & self , logical_device : & ash :: Device , command_buffer : vk :: CommandBuffer , ) { let buffers = [ command_buffer ] ; logical_device . free_command_buffers ( self . command_pool , & buffers ) ; }
Free a command buffer's resources to be used by the pool again.
Free a command buffer ' s resources to be used by the pool again .
&self
logical_device
&ash::Device
command_buffer
vk::CommandBuffer
unsafe because
the caller is responsible for ensuring that the command buffer is
not being used anymore
only command buffers created by previous calls to
[Self::allocate_command_buffer] on this instance can be passed to
this function
the caller is responsible for ensuring that the command buffer is not being used anymore only command buffers created by previous calls to [ Self :: allocate_command_buffer ] on this instance can be passed to this function