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

◆ invalidate_cache()

void MayaFlux::Portal::Graphics::ShaderFoundry::invalidate_cache ( const std::string &  cache_key)

Invalidate cache for specific shader.

Parameters
cache_keyFile path or cache key

Forces next compilation to recompile from source. Useful for hot-reload workflows.

Definition at line 515 of file ShaderFoundry.cpp.

516{
517 auto it = m_shader_cache.find(cache_key);
518 if (it != m_shader_cache.end()) {
519 m_shader_cache.erase(it);
521 "Invalidated shader cache: {}", cache_key);
522 }
523}
#define MF_DEBUG(comp, ctx,...)
std::unordered_map< std::string, std::shared_ptr< Core::VKShaderModule > > m_shader_cache
@ ShaderCompilation
Shader compilation tasks (Portal::Graphics::ShaderCompiler)
@ Portal
High-level user-facing API layer.

References m_shader_cache, MF_DEBUG, MayaFlux::Journal::Portal, and MayaFlux::Journal::ShaderCompilation.

Referenced by hot_reload(), and reload_shader().

+ Here is the caller graph for this function: