fn drop(&mut self) {
        unsafe {
            for buffer in &self.allocated_command_buffers {
                self.command_pool
                    .free_command_buffer(&self.device.logical_device, *buffer);
            }
            self.available_command_buffers.clear();
            self.allocated_command_buffers.clear();
            self.command_pool.destroy(&self.device.logical_device);
        }
    }
/// The owner of the TransientCommandPool must ensure that all usage of
/// the command buffers has completed prior to dropping.
The owner of the TransientCommandPool must ensure that all usage of
the command buffers has completed prior to dropping.
The owner of the TransientCommandPool must ensure that all usage of the command buffers has completed prior to dropping .
fn drop(&mut self) {
        unsafe {
            for buffer in &self.allocated_command_buffers {
                self.command_pool
                    .free_command_buffer(&self.device.logical_device, *buffer);
            }
            self.available_command_buffers.clear();
            self.allocated_command_buffers.clear();
            self.command_pool.destroy(&self.device.logical_device);
        }
    }
fn drop ( & mut self ) { unsafe { for buffer in & self . allocated_command_buffers { self . command_pool . free_command_buffer ( & self . device . logical_device , * buffer ) ; } self . available_command_buffers . clear ( ) ; self . allocated_command_buffers . clear ( ) ; self . command_pool . destroy ( & self . device . logical_device ) ; } }
The owner of the TransientCommandPool must ensure that all usage of
the command buffers has completed prior to dropping.
The owner of the TransientCommandPool must ensure that all usage of the command buffers has completed prior to dropping .
&mut self