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

◆ load_shader() [1/2]

ShaderID MayaFlux::Portal::Graphics::ShaderFoundry::load_shader ( const ShaderSource source)

Load shader from explicit ShaderSource descriptor.

Parameters
sourceComplete shader source specification
Returns
ShaderID, or INVALID_SHADER on failure

Definition at line 350 of file ShaderFoundry.cpp.

351{
352 return load_shader(source.content, source.stage, source.entry_point);
353}
ShaderID load_shader(const std::string &content, std::optional< ShaderStage > stage=std::nullopt, const std::string &entry_point="main")
Universal shader loader - auto-detects source type.

References MayaFlux::Portal::Graphics::ShaderSource::content, MayaFlux::Portal::Graphics::ShaderSource::entry_point, load_shader(), and MayaFlux::Portal::Graphics::ShaderSource::stage.

+ Here is the call graph for this function: