MayaFlux 0.1.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 425 of file ShaderFoundry.cpp.

426{
427 auto it = m_shaders.find(shader_id);
428 if (it != m_shaders.end()) {
429 if (!it->second.filepath.empty()) {
430 m_shader_filepath_cache.erase(it->second.filepath);
431 }
432
433 if (!it->second.filepath.empty()) {
434 m_shader_cache.erase(it->second.filepath);
435 }
436
437 m_shaders.erase(it);
438 }
439}
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: