diff options
Diffstat (limited to 'source/slang/slang-reflection-api.cpp')
| -rw-r--r-- | source/slang/slang-reflection-api.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp index 28b22b833..b9eeccd30 100644 --- a/source/slang/slang-reflection-api.cpp +++ b/source/slang/slang-reflection-api.cpp @@ -2961,6 +2961,12 @@ SLANG_API unsigned int spReflection_GetTypeParameterCount(SlangReflection * refl return (unsigned int) program->specializationParams.getCount(); } +SLANG_API slang::ISession* spReflection_GetSession(SlangReflection* reflection) +{ + auto program = convert(reflection); + return program->getTargetProgram()->getTargetReq()->getLinkage(); +} + SLANG_API SlangReflectionTypeParameter* spReflection_GetTypeParameterByIndex(SlangReflection * reflection, unsigned int index) { auto program = convert(reflection); |
