summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-api.cpp
diff options
context:
space:
mode:
authorAlexey Panteleev <alpanteleev@nvidia.com>2022-05-18 10:57:37 -0700
committerGitHub <noreply@github.com>2022-05-18 10:57:37 -0700
commit69cb6e8f300d77e74bd2c7dfe15d12e10b38f512 (patch)
treec2d23f2883acb28407106a096b55c64111f098b1 /source/slang/slang-api.cpp
parent1148564b9cdbbc8fec4fbecf65b0af60aa6af344 (diff)
Support for querying which parameters are used in emitted code (#2239)
See https://github.com/shader-slang/slang/issues/2213
Diffstat (limited to 'source/slang/slang-api.cpp')
-rw-r--r--source/slang/slang-api.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-api.cpp b/source/slang/slang-api.cpp
index 911bd0f0f..50986660b 100644
--- a/source/slang/slang-api.cpp
+++ b/source/slang/slang-api.cpp
@@ -245,6 +245,13 @@ SLANG_API void spSetCompileFlags(
request->setCompileFlags(flags);
}
+SLANG_API SlangCompileFlags spGetCompileFlags(
+ slang::ICompileRequest* request)
+{
+ SLANG_ASSERT(request);
+ return request->getCompileFlags();
+}
+
SLANG_API void spSetDumpIntermediates(
slang::ICompileRequest* request,
int enable)