MayaFlux 0.5.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 1098 of file ShaderFoundry.cpp.

1099{
1100 auto it = m_fences.find(fence_id);
1101 if (it == m_fences.end()) {
1102 return false;
1103 }
1104
1105 if (it->second.signaled) {
1106 return true;
1107 }
1108
1109 auto result = get_device().getFenceStatus(it->second.fence);
1110 it->second.signaled = (result == vk::Result::eSuccess);
1111 return it->second.signaled;
1112}
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: