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

◆ wait_for_fence()

void MayaFlux::Portal::Graphics::ShaderFoundry::wait_for_fence ( FenceID  fence_id)

Wait for fence to be signaled.

Parameters
fence_idFence ID to wait on

Definition at line 1186 of file ShaderFoundry.cpp.

1187{
1188 auto it = m_fences.find(fence_id);
1189 if (it == m_fences.end()) {
1190 return;
1191 }
1192
1193 if (get_device().waitForFences(1, &it->second.fence, VK_TRUE, UINT64_MAX) != vk::Result::eSuccess) {
1195 "Failed to wait for fence: {}", fence_id);
1196 return;
1197 }
1198 it->second.signaled = true;
1199}
#define MF_ERROR(comp, ctx,...)
vk::Device get_device() const
Get logical device handle.
std::unordered_map< FenceID, FenceState > m_fences
@ ShaderCompilation
Shader compilation tasks (Portal::Graphics::ShaderCompiler)
@ Portal
High-level user-facing API layer.

References get_device(), m_fences, MF_ERROR, MayaFlux::Journal::Portal, and MayaFlux::Journal::ShaderCompilation.

+ Here is the call graph for this function: