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

◆ cleanup_sync_objects()

void MayaFlux::Portal::Graphics::ShaderFoundry::cleanup_sync_objects ( )
private

Definition at line 1025 of file ShaderFoundry.cpp.

1026{
1027 auto device = get_device();
1028
1029 for (auto& [id, state] : m_fences) {
1030 if (state.fence) {
1031 device.destroyFence(state.fence);
1032 }
1033 }
1034 m_fences.clear();
1035
1036 for (auto& [id, state] : m_semaphores) {
1037 if (state.semaphore) {
1038 device.destroySemaphore(state.semaphore);
1039 }
1040 }
1041 m_semaphores.clear();
1042
1044 "Cleaned up sync objects");
1045}
#define MF_DEBUG(comp, ctx,...)
std::unordered_map< FenceID, FenceState > m_fences
std::unordered_map< SemaphoreID, SemaphoreState > m_semaphores
@ ShaderCompilation
Shader compilation tasks (Portal::Graphics::ShaderCompiler)
@ Portal
High-level user-facing API layer.

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

Referenced by shutdown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: