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

◆ initialize_shader()

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

Definition at line 625 of file ShaderProcessor.cpp.

626{
628
629 auto& foundry = Portal::Graphics::get_shader_foundry();
630
633 } else {
635 }
636
639 "Failed to load shader: {}",
640 m_config.shader_path.empty() ? "<from spec>" : m_config.shader_path);
641 return;
642 }
643
645
647 "Shader loaded: {} (ID: {})",
648 m_config.shader_path.empty() ? "<from spec>" : m_config.shader_path, m_shader_id);
649}
#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: