pub fn return_semaphore(&self, sema: VkSemaphore) {
        let mut pool = self.semaphore_pool.lock();

        if let Err(_) = pool.push_back(sema) {
            // Already fulfilled. Just destroy this semaphore.
            self.destroy_semaphore(sema);
        }
    }
/// Return VkSemaphore to the pool.
/// If pool is fulfilled, the semaphore will be destroyed immediately.
Return VkSemaphore to the pool.
If pool is fulfilled, the semaphore will be destroyed immediately.
Return VkSemaphore to the pool . If pool is fulfilled the semaphore will be destroyed immediately .
pub fn return_semaphore(&self, sema: VkSemaphore) {
        let mut pool = self.semaphore_pool.lock();
        if let Err(_) = pool.push_back(sema) {
            // Already fulfilled. Just destroy this semaphore.
            self.destroy_semaphore(sema);
        }
    }
pub fn return_semaphore ( & self , sema : VkSemaphore ) { let mut pool = self . semaphore_pool . lock ( ) ; if let Err ( _ ) = pool . push_back ( sema ) { // Already fulfilled. Just destroy this semaphore. self . destroy_semaphore ( sema ) ; } }
Return VkSemaphore to the pool.
Return VkSemaphore to the pool .
&self
sema
VkSemaphore
&self
sema
VkSemaphore