| 76 | } |
| 77 | |
| 78 | inline bool doSlangReflection( |
| 79 | const ProgramVersion& programVersion, |
| 80 | slang::IComponentType* pSlangGlobalScope, |
| 81 | std::vector<Slang::ComPtr<slang::IComponentType>> pSlangLinkedEntryPoints, |
| 82 | ref<const ProgramReflection>& pReflector, |
| 83 | std::string& log |
| 84 | ) |
| 85 | { |
| 86 | auto pSlangGlobalScopeLayout = pSlangGlobalScope->getLayout(); |
| 87 | |
| 88 | // TODO: actually need to reflect the entry point groups! |
| 89 | |
| 90 | std::vector<slang::EntryPointLayout*> pSlangEntryPointReflectors; |
| 91 | |
| 92 | for (auto pSlangLinkedEntryPoint : pSlangLinkedEntryPoints) |
| 93 | { |
| 94 | auto pSlangEntryPointLayout = pSlangLinkedEntryPoint->getLayout()->getEntryPointByIndex(0); |
| 95 | pSlangEntryPointReflectors.push_back(pSlangEntryPointLayout); |
| 96 | } |
| 97 | |
| 98 | pReflector = ProgramReflection::create(&programVersion, pSlangGlobalScopeLayout, pSlangEntryPointReflectors, log); |
| 99 | |
| 100 | return true; |
| 101 | } |
| 102 | |
| 103 | ProgramManager::ProgramManager(Device* pDevice) : mpDevice(pDevice) |
| 104 | { |
no test coverage detected