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

◆ shutdown()

void MayaFlux::Portal::Graphics::ShaderFoundry::shutdown ( )

Shutdown and cleanup all ShaderFoundry resources.

Destroys sync objects, descriptor resources, and shader modules. Must be called AFTER stop() and AFTER pipeline consumers (RenderFlow/ComputePress) shutdown.

Definition at line 73 of file ShaderFoundry.cpp.

74{
75 if (!s_initialized) {
76 return;
77 }
78
79 if (!m_backend) {
80 return;
81 }
82
84 "Shutting down ShaderFoundry...");
85
86 if (!m_command_buffers.empty()) {
88 "{} command buffers still exist during shutdown - freeing now",
89 m_command_buffers.size());
91 }
92
94
96
98
99 m_backend = nullptr;
100 s_initialized = false;
101
103 "ShaderFoundry shutdown complete");
104}
#define MF_INFO(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
void free_all_command_buffers()
Free all allocated command buffers.
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers
std::shared_ptr< Core::VulkanBackend > m_backend
@ ShaderCompilation
Shader compilation tasks (Portal::Graphics::ShaderCompiler)
@ Portal
High-level user-facing API layer.

References cleanup_descriptor_resources(), cleanup_shader_modules(), cleanup_sync_objects(), free_all_command_buffers(), m_backend, m_command_buffers, MF_INFO, MF_WARN, MayaFlux::Journal::Portal, s_initialized, and MayaFlux::Journal::ShaderCompilation.

Referenced by MayaFlux::Portal::Graphics::shutdown().

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