MayaFlux 0.5.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 664 of file ShaderFoundry.cpp.

665{
667}
std::string name
Definition VKDevice.cpp:143
float value
std::unordered_map< std::string, std::string > defines
Preprocessor macros.

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