| 1185 | } |
| 1186 | |
| 1187 | static 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 | |
| 1204 | ref<const ProgramReflection> ProgramReflection::create( |
| 1205 | ProgramVersion const* pProgramVersion, |
no test coverage detected