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

Method getParameterBlock

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

Source from the content-addressed store, hash-verified

2041}
2042
2043ref<const ParameterBlockReflection> ProgramReflection::getParameterBlock(std::string_view name) const
2044{
2045 if (name == "")
2046 return mpDefaultBlock;
2047
2048 return mpDefaultBlock->getElementType()->findMember(name)->getType()->asResourceType()->getParameterBlockReflector();
2049}
2050
2051TypedShaderVarOffset ReflectionType::findMemberByOffset(size_t offset) const
2052{

Callers

nothing calls this directly

Calls 3

asResourceTypeMethod · 0.80
getTypeMethod · 0.45
findMemberMethod · 0.45

Tested by

no test coverage detected