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

Function doSlangReflection

Source/Falcor/Core/Program/ProgramManager.cpp:78–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78inline 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
103ProgramManager::ProgramManager(Device* pDevice) : mpDevice(pDevice)
104{

Callers 2

createProgramVersionMethod · 0.85
createProgramKernelsMethod · 0.85

Calls 2

createFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected