From cd27fbd1d3822f6da4d539ad467b9af2ad159526 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 27 Jan 2025 23:06:21 -0800 Subject: Add a unit test to cover type-conformance compilation API. (#6178) Co-authored-by: Anders Leino --- source/slang/slang.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source') 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 -- cgit v1.2.3