| 1073 | } |
| 1074 | |
| 1075 | ref<ReflectionVar> reflectVariable( |
| 1076 | VariableLayoutReflection* pSlangLayout, |
| 1077 | ShaderVarOffset::RangeIndex rangeIndex, |
| 1078 | ParameterBlockReflection* pBlock, |
| 1079 | ReflectionPath* pPath, |
| 1080 | ProgramVersion const* pProgramVersion |
| 1081 | ) |
| 1082 | { |
| 1083 | FALCOR_ASSERT(pPath); |
| 1084 | std::string name(pSlangLayout->getName()); |
| 1085 | |
| 1086 | ref<ReflectionType> pType = reflectType(pSlangLayout->getTypeLayout(), pBlock, pPath, pProgramVersion); |
| 1087 | auto byteOffset = (ShaderVarOffset::ByteOffset)pSlangLayout->getOffset(SLANG_PARAMETER_CATEGORY_UNIFORM); |
| 1088 | |
| 1089 | ref<ReflectionVar> pVar = |
| 1090 | ReflectionVar::create(name, pType, ShaderVarOffset(UniformShaderVarOffset(byteOffset), ResourceShaderVarOffset(rangeIndex, 0))); |
| 1091 | |
| 1092 | return pVar; |
| 1093 | } |
| 1094 | |
| 1095 | ref<ReflectionVar> reflectTopLevelVariable( |
| 1096 | VariableLayoutReflection* pSlangLayout, |
no test coverage detected