MayaFlux 0.1.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 830 of file ShaderFoundry.cpp.

831{
832 auto it = m_fences.find(fence_id);
833 if (it == m_fences.end()) {
834 return;
835 }
836
837 if (get_device().waitForFences(1, &it->second.fence, VK_TRUE, UINT64_MAX) != vk::Result::eSuccess) {
839 "Failed to wait for fence: {}", fence_id);
840 return;
841 }
842 it->second.signaled = true;
843}
#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: