MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_fence_signaled()

bool MayaFlux::Portal::Graphics::ShaderFoundry::is_fence_signaled ( FenceID  fence_id)

Check if fence is signaled.

Parameters
fence_idFence ID to check
Returns
True if fence is signaled, false otherwise

Definition at line 991 of file ShaderFoundry.cpp.

992{
993 auto it = m_fences.find(fence_id);
994 if (it == m_fences.end()) {
995 return false;
996 }
997
998 if (it->second.signaled) {
999 return true;
1000 }
1001
1002 auto result = get_device().getFenceStatus(it->second.fence);
1003 it->second.signaled = (result == vk::Result::eSuccess);
1004 return it->second.signaled;
1005}
vk::Device get_device() const
Get logical device handle.
std::unordered_map< FenceID, FenceState > m_fences

References get_device(), and m_fences.

+ Here is the call graph for this function: