MayaFlux 0.2.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 570 of file ShaderFoundry.cpp.

571{
572 m_config.defines[name] = value;
573}
std::unordered_map< std::string, std::string > defines
Preprocessor macros.

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