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

Method getMemberIndex

Source/Falcor/Core/Program/ProgramReflection.cpp:2096–2102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2094}
2095
2096int32_t ReflectionStructType::getMemberIndex(std::string_view name) const
2097{
2098 auto it = mNameToIndex.find(name);
2099 if (it == mNameToIndex.end())
2100 return kInvalidMemberIndex;
2101 return it->second;
2102}
2103
2104const ref<const ReflectionVar>& ReflectionStructType::getMember(std::string_view name) const
2105{

Callers 1

findMemberMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected