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

Function reflectShaderIO

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

Source from the content-addressed store, hash-verified

1185}
1186
1187static void reflectShaderIO(
1188 slang::EntryPointReflection* pEntryPoint,
1189 SlangParameterCategory category,
1190 ProgramReflection::VariableMap& varMap,
1191 ProgramReflection::VariableMap* pVarMapBySemantic = nullptr
1192)
1193{
1194 uint32_t entryPointParamCount = pEntryPoint->getParameterCount();
1195 for (uint32_t pp = 0; pp < entryPointParamCount; ++pp)
1196 {
1197 auto pVar = pEntryPoint->getParameterByIndex(pp);
1198
1199 ExtendedReflectionPath path(nullptr, pVar);
1200 reflectVaryingParameter(path, pVar->getName(), category, varMap, pVarMapBySemantic);
1201 }
1202}
1203
1204ref<const ProgramReflection> ProgramReflection::create(
1205 ProgramVersion const* pProgramVersion,

Callers 1

ProgramReflectionMethod · 0.85

Calls 2

reflectVaryingParameterFunction · 0.85
getNameMethod · 0.45

Tested by

no test coverage detected