summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 9c75aa63e..ec5a7084e 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -608,6 +608,12 @@ SLANG_NO_THROW SlangResult SLANG_MCALL Session::createSession(
{
linkage->setFileSystem(desc.fileSystem);
}
+
+ if (desc.structureSize >= offsetof(slang::SessionDesc, enableEffectAnnotations))
+ {
+ linkage->setEnableEffectAnnotations(desc.enableEffectAnnotations);
+ }
+
*outSession = asExternal(linkage.detach());
return SLANG_OK;
}
@@ -4804,6 +4810,11 @@ void EndToEndCompileRequest::addPreprocessorDefine(const char* key, const char*
getLinkage()->addPreprocessorDefine(key, value);
}
+void EndToEndCompileRequest::setEnableEffectAnnotations(bool value)
+{
+ getLinkage()->setEnableEffectAnnotations(value);
+}
+
char const* EndToEndCompileRequest::getDiagnosticOutput()
{
return m_diagnosticOutput.begin();