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

78{
79 if (!s_initialized) {
80 return;
81 }
82
83 if (!m_backend) {
84 return;
85 }
86
88 "Shutting down ShaderFoundry...");
89
90 if (!m_command_buffers.empty()) {
92 "{} command buffers still exist during shutdown - freeing now",
93 m_command_buffers.size());
95 }
96
98
100
102
103 m_backend = nullptr;
104 s_initialized = false;
105
107 "ShaderFoundry shutdown complete");
108}
#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: