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

Method hasExactInputMatch

source/MaterialXCore/Interface.cpp:596–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596bool InterfaceElement::hasExactInputMatch(ConstInterfaceElementPtr declaration, string* message) const
597{
598 for (InputPtr input : getActiveInputs())
599 {
600 InputPtr declarationInput = declaration->getActiveInput(input->getName());
601 if (!declarationInput ||
602 declarationInput->getType() != input->getType())
603 {
604 if (message)
605 {
606 *message += "Input '" + input->getName() + "' doesn't match declaration";
607 }
608 return false;
609 }
610 }
611 return true;
612}
613
614MATERIALX_NAMESPACE_END

Callers

nothing calls this directly

Calls 3

getActiveInputMethod · 0.80
getNameMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected