pub fn create_pool<R>(
        &self,
        device: &impl gfx_hal::Device<B>,
    ) -> Result<CommandPool<B, C, R>, gfx_hal::device::OutOfMemory>
    where
        R: Reset,
        C: Capability,
    {
        let reset = R::default();
        let pool = unsafe {
            // Is this family belong to specified device.
            let raw = device.create_command_pool(self.id, reset.flags())?;

            CommandPool::from_raw(raw, self.capability, reset, self.id)
        };

        Ok(pool)
    }
/// Create command pool associated with the family.
/// Command buffers created from the pool could be submitted to the queues of the family.
Create command pool associated with the family.
Command buffers created from the pool could be submitted to the queues of the family.
Create command pool associated with the family . Command buffers created from the pool could be submitted to the queues of the family .
pub fn create_pool<R>(
        &self,
        device: &impl gfx_hal::Device<B>,
    ) -> Result<CommandPool<B, C, R>, gfx_hal::device::OutOfMemory>
    where
        R: Reset,
        C: Capability,
    {
        let reset = R::default();
        let pool = unsafe {
            // Is this family belong to specified device.
            let raw = device.create_command_pool(self.id, reset.flags())?;
            CommandPool::from_raw(raw, self.capability, reset, self.id)
        };
        Ok(pool)
    }
pub fn create_pool < R > ( & self , device : & impl gfx_hal :: Device < B > , ) -> Result < CommandPool < B , C , R > , gfx_hal :: device :: OutOfMemory > where R : Reset , C : Capability , { let reset = R :: default ( ) ; let pool = unsafe { // Is this family belong to specified device. let raw = device . create_command_pool ( self . id , reset . flags ( ) ) ? ; CommandPool :: from_raw ( raw , self . capability , reset , self . id ) } ; Ok ( pool ) }
Create command pool associated with the family.
Create command pool associated with the family .
&self
device
&impl gfx_hal::Device<B>
&self
device
&impl gfx_hal::Device<B>