MayaFlux 1.0.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 1253 of file ShaderFoundry.cpp.

1254{
1255 auto it = m_fences.find(fence_id);
1256 if (it == m_fences.end()) {
1257 return false;
1258 }
1259
1260 if (it->second.signaled) {
1261 return true;
1262 }
1263
1264 auto result = get_device().getFenceStatus(it->second.fence);
1265 it->second.signaled = (result == vk::Result::eSuccess);
1266 return it->second.signaled;
1267}
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: