summaryrefslogtreecommitdiff
path: root/source/slang/slang-options.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-08-17 09:39:02 -0700
committerGitHub <noreply@github.com>2021-08-17 09:39:02 -0700
commit858c7c57b125afed9b5b2329d6b02477284e4803 (patch)
tree49f67b342448dcfb19913d8ccc089d956de14462 /source/slang/slang-options.cpp
parent6406523511037987d8b8ab881aea41389afd57eb (diff)
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.
Diffstat (limited to 'source/slang/slang-options.cpp')
-rw-r--r--source/slang/slang-options.cpp2
1 files changed, 1 insertions, 1 deletions
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")
{