pub fn take_fence(&self, signaled: bool) -> VkFence {
        let mut pool = self.fence_pool.lock();

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

        let info = VkFenceCreateInfo {
            flags: if signaled {
                FenceCreateFlags::Signaled.bits()
            } else {
                0
            },
            ..Default::default()
        };

        self.create_fence(&info).unwrap()
    }
/// Get a VkFence from the fence pool.
/// If no fence available, a new one will be created. User can set the new fence to be signaled
/// initially.
Get a VkFence from the fence pool.
If no fence available, a new one will be created. User can set the new fence to be signaled
initially.
Get a VkFence from the fence pool . If no fence available a new one will be created . User can set the new fence to be signaled initially .
pub fn take_fence(&self, signaled: bool) -> VkFence {
        let mut pool = self.fence_pool.lock();
        if let Some(fence) = pool.pop_front() {
            return fence;
        }
        let info = VkFenceCreateInfo {
            flags: if signaled {
                FenceCreateFlags::Signaled.bits()
            } else {
                0
            },
            ..Default::default()
        };
        self.create_fence(&info).unwrap()
    }
pub fn take_fence ( & self , signaled : bool ) -> VkFence { let mut pool = self . fence_pool . lock ( ) ; if let Some ( fence ) = pool . pop_front ( ) { return fence ; } let info = VkFenceCreateInfo { flags : if signaled { FenceCreateFlags :: Signaled . bits ( ) } else { 0 } , .. Default :: default ( ) } ; self . create_fence ( & info ) . unwrap ( ) }
Get a VkFence from the fence pool.
Get a VkFence from the fence pool .
&self
signaled
bool
&self
signaled
bool