MayaFlux 1.0.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 1291 of file ShaderFoundry.cpp.

1292{
1293 auto device = get_device();
1294
1295 for (auto& [id, state] : m_fences) {
1296 if (state.fence) {
1297 device.destroyFence(state.fence);
1298 }
1299 }
1300 m_fences.clear();
1301
1302 for (auto& [id, state] : m_semaphores) {
1303 if (state.semaphore) {
1304 device.destroySemaphore(state.semaphore);
1305 }
1306 }
1307 m_semaphores.clear();
1308
1310 "Cleaned up sync objects");
1311}
#define MF_DEBUG(comp, ctx,...)
vk::PhysicalDevice device
Definition VKDevice.cpp:121
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 device, 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: