pub fn new(
        logical_device: &ash::Device,
        queue_family_index: u32,
    ) -> Result<Self> {
        let create_info = vk::CommandPoolCreateInfo {
            queue_family_index,
            flags: vk::CommandPoolCreateFlags::TRANSIENT,
            ..Default::default()
        };
        let command_pool = unsafe {
            logical_device
                .create_command_pool(&create_info, None)
                .context("unable to create the command pool")?
        };

        Ok(Self { command_pool })
    }
/// Create the command buffer pool.
///
/// The caller is responsible for destroying the pool.
Create the command buffer pool.
The caller is responsible for destroying the pool.
Create the command buffer pool . The caller is responsible for destroying the pool .
pub fn new(
        logical_device: &ash::Device,
        queue_family_index: u32,
    ) -> Result<Self> {
        let create_info = vk::CommandPoolCreateInfo {
            queue_family_index,
            flags: vk::CommandPoolCreateFlags::TRANSIENT,
            ..Default::default()
        };
        let command_pool = unsafe {
            logical_device
                .create_command_pool(&create_info, None)
                .context("unable to create the command pool")?
        };
        Ok(Self { command_pool })
    }
pub fn new ( logical_device : & ash :: Device , queue_family_index : u32 , ) -> Result < Self > { let create_info = vk :: CommandPoolCreateInfo { queue_family_index , flags : vk :: CommandPoolCreateFlags :: TRANSIENT , .. Default :: default ( ) } ; let command_pool = unsafe { logical_device . create_command_pool ( & create_info , None ) . context ( " " ) ? } ; Ok ( Self { command_pool } ) }
Create the command buffer pool.
Create the command buffer pool .
logical_device
&ash::Device
queue_family_index
u32