MayaFlux 0.2.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 1010 of file ShaderFoundry.cpp.

1011{
1012 auto device = get_device();
1013
1014 for (auto& [id, state] : m_fences) {
1015 if (state.fence) {
1016 device.destroyFence(state.fence);
1017 }
1018 }
1019 m_fences.clear();
1020
1021 for (auto& [id, state] : m_semaphores) {
1022 if (state.semaphore) {
1023 device.destroySemaphore(state.semaphore);
1024 }
1025 }
1026 m_semaphores.clear();
1027
1029 "Cleaned up sync objects");
1030}
#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: