MayaFlux 0.3.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 946 of file ShaderFoundry.cpp.

947{
948 auto it = m_fences.find(fence_id);
949 if (it == m_fences.end()) {
950 return;
951 }
952
953 if (get_device().waitForFences(1, &it->second.fence, VK_TRUE, UINT64_MAX) != vk::Result::eSuccess) {
955 "Failed to wait for fence: {}", fence_id);
956 return;
957 }
958 it->second.signaled = true;
959}
#define MF_ERROR(comp, ctx,...)
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: