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

1032{
1033 auto it = m_fences.find(fence_id);
1034 if (it == m_fences.end()) {
1035 return;
1036 }
1037
1038 if (get_device().waitForFences(1, &it->second.fence, VK_TRUE, UINT64_MAX) != vk::Result::eSuccess) {
1040 "Failed to wait for fence: {}", fence_id);
1041 return;
1042 }
1043 it->second.signaled = true;
1044}
#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: