summaryrefslogtreecommitdiff
path: root/source/slang/slang-spirv-val.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-spirv-val.cpp')
-rw-r--r--source/slang/slang-spirv-val.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-spirv-val.cpp b/source/slang/slang-spirv-val.cpp
index d41f0e8cc..a6bc29306 100644
--- a/source/slang/slang-spirv-val.cpp
+++ b/source/slang/slang-spirv-val.cpp
@@ -53,6 +53,8 @@ SlangResult debugValidateSPIRV(const List<uint8_t>& spirv)
// Set up our process
CommandLine commandLine;
commandLine.m_executableLocation.setName("spirv-val");
+ commandLine.addArg("--target-env");
+ commandLine.addArg("vulkan1.2");
RefPtr<Process> p;
const auto createResult = Process::create(commandLine, 0, p);
// If we failed to even start the process, then validation isn't available