pub fn reset_command_pool(&mut self) -> VkResult<()> {
        log::trace!("Resetting command buffer pool {:?}", self.command_pool_meta);

        unsafe {
            // First free the command buffers
            self.device_context
                .device()
                .free_command_buffers(self.command_pool, &self.allocated_command_buffers);
            self.allocated_command_buffers.clear();

            // Reset all command buffers
            self.device_context
                .device()
                .reset_command_pool(self.command_pool, vk::CommandPoolResetFlags::empty())
        }
    }
/// Resets the command pool, invalidating all command buffers that have previously been created
Resets the command pool, invalidating all command buffers that have previously been created
Resets the command pool invalidating all command buffers that have previously been created
pub fn reset_command_pool(&mut self) -> VkResult<()> {
        log::trace!("Resetting command buffer pool {:?}", self.command_pool_meta);
        unsafe {
            // First free the command buffers
            self.device_context
                .device()
                .free_command_buffers(self.command_pool, &self.allocated_command_buffers);
            self.allocated_command_buffers.clear();
            // Reset all command buffers
            self.device_context
                .device()
                .reset_command_pool(self.command_pool, vk::CommandPoolResetFlags::empty())
        }
    }
pub fn reset_command_pool ( & mut self ) -> VkResult < ( ) > { log :: trace ! ( " " self command_pool_meta ) ; unsafe { // First free the command buffers self . device_context . device ( ) . free_command_buffers ( self . command_pool , & self . allocated_command_buffers ) ; self . allocated_command_buffers . clear ( ) ; // Reset all command buffers self . device_context . device ( ) . reset_command_pool ( self . command_pool , vk :: CommandPoolResetFlags :: empty ( ) ) } }
Resets the command pool, invalidating all command buffers that have previously been created
Resets the command pool invalidating all command buffers that have previously been created
&mut self
&mut self