MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / getVariableName

Method getVariableName

source/MaterialXGenShader/Syntax.cpp:186–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186string Syntax::getVariableName(const string& name, TypeDesc /*type*/, IdentifierMap& identifiers) const
187{
188 // Default implementation just makes an identifier, but derived
189 // classes can override this for custom variable naming.
190 string variable = name;
191 makeIdentifier(variable, identifiers);
192 return variable;
193}
194
195bool Syntax::remapEnumeration(const string&, TypeDesc, const string&, std::pair<TypeDesc, ValuePtr>&) const
196{

Callers 2

addDefaultGeomNodeMethod · 0.80
setVariableNamesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected