From 858c7c57b125afed9b5b2329d6b02477284e4803 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 17 Aug 2021 09:39:02 -0700 Subject: Add GLSL450 intrinsics to SPIRV direct emit. (#1921) * Add GLSL450 intrinsics to SPIRV direct emit. * Fix. * Fix compiler error. * Fix. * Fix compiler error. * Make direct-spirv tests actually run. --- source/slang/slang-options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-options.cpp') diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 73ccaab55..90c5a3896 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -1163,7 +1163,7 @@ struct OptionsParser } else if( argValue == "-emit-spirv-directly" ) { - requestImpl->getBackEndReq()->shouldEmitSPIRVDirectly = true; + getCurrentTarget()->targetFlags |= SLANG_TARGET_FLAG_GENERATE_SPIRV_DIRECTLY; } else if (argValue == "-default-downstream-compiler") { -- cgit v1.2.3