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

◆ hot_reload()

std::shared_ptr< Core::VKShaderModule > MayaFlux::Portal::Graphics::ShaderFoundry::hot_reload ( const std::string &  filepath)

Hot-reload a shader from file.

Parameters
filepathPath to shader file
Returns
Recompiled shader module, or nullptr on failure

Convenience method: invalidate_cache() + compile_from_file(). Returns new shader module; consumers must update references.

Definition at line 532 of file ShaderFoundry.cpp.

533{
534 invalidate_cache(filepath);
535 return compile_from_file(filepath);
536}
void invalidate_cache(const std::string &cache_key)
Invalidate cache for specific shader.
std::shared_ptr< Core::VKShaderModule > compile_from_file(const std::string &filepath, std::optional< ShaderStage > stage=std::nullopt, const std::string &entry_point="main")

References compile_from_file(), and invalidate_cache().

+ Here is the call graph for this function: