pub fn return_fence(&self, fence: VkFence) {
        let mut pool = self.fence_pool.lock();

        if let Err(_) = pool.push_back(fence) {
            // Already fulfilled. Just destroy this semaphore.
            self.reset_fences(&[fence]).unwrap();
            self.destroy_fence(fence);
        }
    }
/// Return VkFence to the pool.
/// If pool is fulfilled, the fence will be reset and then destroyed immediately.
Return VkFence to the pool.
If pool is fulfilled, the fence will be reset and then destroyed immediately.
Return VkFence to the pool . If pool is fulfilled the fence will be reset and then destroyed immediately .
pub fn return_fence(&self, fence: VkFence) {
        let mut pool = self.fence_pool.lock();
        if let Err(_) = pool.push_back(fence) {
            // Already fulfilled. Just destroy this semaphore.
            self.reset_fences(&[fence]).unwrap();
            self.destroy_fence(fence);
        }
    }
pub fn return_fence ( & self , fence : VkFence ) { let mut pool = self . fence_pool . lock ( ) ; if let Err ( _ ) = pool . push_back ( fence ) { // Already fulfilled. Just destroy this semaphore. self . reset_fences ( & [ fence ] ) . unwrap ( ) ; self . destroy_fence ( fence ) ; } }
Return VkFence to the pool.
Return VkFence to the pool .
&self
fence
VkFence
&self
fence
VkFence