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

◆ add_define()

void MayaFlux::Portal::Graphics::ShaderFoundry::add_define ( const std::string &  name,
const std::string &  value = "" 
)

Add preprocessor define for shader compilation.

Parameters
nameMacro name
valueMacro value (optional)

Example: define("DEBUG", "1") → #define DEBUG 1

Definition at line 554 of file ShaderFoundry.cpp.

555{
556 m_config.defines[name] = value;
557}
std::unordered_map< std::string, std::string > defines
Preprocessor macros.

References MayaFlux::Portal::Graphics::ShaderCompilerConfig::defines, and m_config.