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

◆ initialize_shader()

void MayaFlux::Buffers::ShaderProcessor::initialize_shader ( )
private

Definition at line 678 of file ShaderProcessor.cpp.

679{
681
682 auto& foundry = Portal::Graphics::get_shader_foundry();
683
686 } else {
688 }
689
692 "Failed to load shader: {}",
693 m_config.shader_path.empty() ? "<from spec>" : m_config.shader_path);
694 return;
695 }
696
698
700 "Shader loaded: {} (ID: {})",
701 m_config.shader_path.empty() ? "<from spec>" : m_config.shader_path, m_shader_id);
702}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
Portal::Graphics::ShaderID m_shader_id
virtual void on_before_compile(const std::string &shader_path)
Called before shader compilation.
virtual void on_shader_loaded(Portal::Graphics::ShaderID shader_id)
Called after shader is loaded.
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.
constexpr ShaderID INVALID_SHADER
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.
std::string shader_path
Path to shader file.
Portal::Graphics::ShaderStage stage
Portal::Graphics::ShaderID shader_id

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Buffers::ShaderConfig::entry_point, MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Portal::Graphics::INVALID_SHADER, m_config, m_shader_id, MF_ERROR, MF_INFO, on_before_compile(), on_shader_loaded(), MayaFlux::Buffers::ShaderConfig::shader_id, MayaFlux::Buffers::ShaderConfig::shader_path, and MayaFlux::Buffers::ShaderConfig::stage.

Referenced by processing_function(), set_config(), and set_shader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: