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

95{
96 if (!s_initialized) {
97 return;
98 }
99
100 if (!m_backend) {
101 return;
102 }
103
105 "Shutting down ShaderFoundry...");
106
107 if (!m_command_buffers.empty()) {
109 "{} command buffers still exist during shutdown - freeing now",
110 m_command_buffers.size());
112 }
113
115
117
119
120 m_finished_timestamps.reset();
121
122 m_backend = nullptr;
123 s_initialized = false;
124
126 "ShaderFoundry shutdown complete");
127}
#define MF_INFO(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
Memory::HistoryBuffer< FinishedTimestamp > m_finished_timestamps
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, m_finished_timestamps, 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: