pub fn allocate_pool(
        &mut self,
        device: &ash::Device,
    ) -> VkResult<T> {
        self.reset_pools.pop().map(Ok).unwrap_or_else(|| {
            self.created_pool_count += 1;
            assert!(self.created_pool_count <= self.max_pool_count);
            (self.allocate_fn)(device)
        })
    }
/// Allocate a pool - either reusing an old one that has been reset or creating a new one. Will
/// assert that we do not exceed max_pool_count. The pool is allowed to exist until retire_pool
/// is called. After this point, we will wait for N frames before restting it.
Allocate a pool - either reusing an old one that has been reset or creating a new one. Will
assert that we do not exceed max_pool_count. The pool is allowed to exist until retire_pool
is called. After this point, we will wait for N frames before restting it.
Allocate a pool - either reusing an old one that has been reset or creating a new one . Will assert that we do not exceed max_pool_count . The pool is allowed to exist until retire_pool is called . After this point we will wait for N frames before restting it .
pub fn allocate_pool(
        &mut self,
        device: &ash::Device,
    ) -> VkResult<T> {
        self.reset_pools.pop().map(Ok).unwrap_or_else(|| {
            self.created_pool_count += 1;
            assert!(self.created_pool_count <= self.max_pool_count);
            (self.allocate_fn)(device)
        })
    }
pub fn allocate_pool ( & mut self , device : & ash :: Device , ) -> VkResult < T > { self . reset_pools . pop ( ) . map ( Ok ) . unwrap_or_else ( | | { self . created_pool_count += 1 ; assert ! ( self created_pool_count self max_pool_count ) ; ( self . allocate_fn ) ( device ) } ) }
Allocate a pool - either reusing an old one that has been reset or creating a new one.
Allocate a pool - either reusing an old one that has been reset or creating a new one .
&mut self
device
&ash::Device
&mut self
device
&ash::Device