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

◆ initialize_shader()

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

Definition at line 392 of file ShaderProcessor.cpp.

393{
395
396 auto& foundry = Portal::Graphics::get_shader_foundry();
398
401 "Failed to load shader: {}", m_config.shader_path);
402 return;
403 }
404
406
408 "Shader loaded: {} (ID: {})", m_config.shader_path, m_shader_id);
409}
#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.
Portal::Graphics::ShaderStage stage
std::string shader_path
Path to shader file.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Buffers::ShaderProcessorConfig::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::ShaderProcessorConfig::shader_path, and MayaFlux::Buffers::ShaderProcessorConfig::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: