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

◆ cleanup_shader_modules()

void MayaFlux::Portal::Graphics::ShaderFoundry::cleanup_shader_modules ( )
private

Definition at line 519 of file ShaderFoundry.cpp.

520{
521 auto device = get_device();
522
523 for (auto& [key, shader_module] : m_shader_cache) {
524 if (shader_module) {
525 shader_module->cleanup(device);
526 }
527 }
528
529 m_shader_cache.clear();
530 m_shaders.clear();
532
534 "Cleaned up shader modules");
535}
#define MF_DEBUG(comp, ctx,...)
vk::Device get_device() const
Get logical device handle.
std::unordered_map< std::string, ShaderID > m_shader_filepath_cache
std::unordered_map< std::string, std::shared_ptr< Core::VKShaderModule > > m_shader_cache
std::unordered_map< ShaderID, ShaderState > m_shaders
@ ShaderCompilation
Shader compilation tasks (Portal::Graphics::ShaderCompiler)
@ Portal
High-level user-facing API layer.

References get_device(), m_shader_cache, m_shader_filepath_cache, m_shaders, 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: