pub fn take_semaphore(&self) -> VkSemaphore {
        let mut pool = self.semaphore_pool.lock();

        if let Some(sema) = pool.pop_front() {
            return sema;
        }

        let info = VkSemaphoreCreateInfo::default();
        self.create_semaphore(&info).unwrap()
    }
/// Get a VkSemaphore from the semaphore pool.
/// If no semaphore available, a new one will be created.
Get a VkSemaphore from the semaphore pool.
If no semaphore available, a new one will be created.
Get a VkSemaphore from the semaphore pool . If no semaphore available a new one will be created .
pub fn take_semaphore(&self) -> VkSemaphore {
        let mut pool = self.semaphore_pool.lock();
        if let Some(sema) = pool.pop_front() {
            return sema;
        }
        let info = VkSemaphoreCreateInfo::default();
        self.create_semaphore(&info).unwrap()
    }
pub fn take_semaphore ( & self ) -> VkSemaphore { let mut pool = self . semaphore_pool . lock ( ) ; if let Some ( sema ) = pool . pop_front ( ) { return sema ; } let info = VkSemaphoreCreateInfo :: default ( ) ; self . create_semaphore ( & info ) . unwrap ( ) }
Get a VkSemaphore from the semaphore pool.
Get a VkSemaphore from the semaphore pool .
&self
&self