MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / addDefine

Method addDefine

Source/Falcor/Core/Program/Program.cpp:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool Program::addDefine(const std::string& name, const std::string& value)
152{
153 // Make sure that it doesn't exist already
154 if (mDefineList.find(name) != mDefineList.end())
155 {
156 if (mDefineList[name] == value)
157 {
158 // Same define
159 return false;
160 }
161 }
162 markDirty();
163 mDefineList[name] = value;
164 return true;
165}
166
167bool Program::addDefines(const DefineList& dl)
168{

Callers 15

executeMethod · 0.45
prepareProgramMethod · 0.45
prepareSurfaceDataMethod · 0.45
finalShadingMethod · 0.45
prepareProgramMethod · 0.45
generatePathsMethod · 0.45
tracePassMethod · 0.45
resolvePassMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls 2

markDirtyFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected