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

◆ destroy_shader()

void MayaFlux::Portal::Graphics::ShaderFoundry::destroy_shader ( ShaderID  shader_id)

Destroy shader (cleanup internal state)

Definition at line 436 of file ShaderFoundry.cpp.

437{
438 auto it = m_shaders.find(shader_id);
439 if (it != m_shaders.end()) {
440 if (!it->second.filepath.empty()) {
441 m_shader_filepath_cache.erase(it->second.filepath);
442 }
443
444 if (!it->second.filepath.empty()) {
445 m_shader_cache.erase(it->second.filepath);
446 }
447
448 m_shaders.erase(it);
449 }
450}
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

References m_shader_cache, m_shader_filepath_cache, and m_shaders.

Referenced by reload_shader().

+ Here is the caller graph for this function: