summaryrefslogtreecommitdiffstats
path: root/source/slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-01-27 23:06:21 -0800
committerGitHub <noreply@github.com>2025-01-28 07:06:21 +0000
commitcd27fbd1d3822f6da4d539ad467b9af2ad159526 (patch)
tree293263fd34652ec1cfb7efcec31e79372f82df92 /source/slang
parent31bb5eaa094821145fe235f9a13817b0b3b2bdee (diff)
Add a unit test to cover type-conformance compilation API. (#6178)
Co-authored-by: Anders Leino <aleino@nvidia.com>
Diffstat (limited to 'source/slang')
-rw-r--r--source/slang/slang.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 8d73cc0ef..21944e4f3 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -1337,6 +1337,7 @@ void Linkage::addTarget(slang::TargetDesc const& desc)
optionSet.setProfile(Profile(desc.profile));
optionSet.set(CompilerOptionName::LineDirectiveMode, LineDirectiveMode(desc.lineDirectiveMode));
optionSet.set(CompilerOptionName::GLSLForceScalarLayout, desc.forceGLSLScalarBufferLayout);
+ optionSet.load(desc.compilerOptionEntryCount, desc.compilerOptionEntries);
}
#if 0