MayaFlux 0.4.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 1029 of file ShaderFoundry.cpp.

1030{
1031 auto device = get_device();
1032
1033 for (auto& [id, state] : m_fences) {
1034 if (state.fence) {
1035 device.destroyFence(state.fence);
1036 }
1037 }
1038 m_fences.clear();
1039
1040 for (auto& [id, state] : m_semaphores) {
1041 if (state.semaphore) {
1042 device.destroySemaphore(state.semaphore);
1043 }
1044 }
1045 m_semaphores.clear();
1046
1048 "Cleaned up sync objects");
1049}
#define MF_DEBUG(comp, ctx,...)
vk::Device get_device() const
Get logical device handle.
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: