summaryrefslogtreecommitdiff
path: root/tools/render-test/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/options.h')
-rw-r--r--tools/render-test/options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/render-test/options.h b/tools/render-test/options.h
index 22b14c862..c2466f671 100644
--- a/tools/render-test/options.h
+++ b/tools/render-test/options.h
@@ -71,7 +71,11 @@ struct Options
Slang::DownstreamArgs downstreamArgs; ///< Args to downstream tools. Here it's just slang
+#if defined(SLANG_CONFIG_DEFAULT_SPIRV_DIRECT)
+ bool generateSPIRVDirectly = true;
+#else
bool generateSPIRVDirectly = false;
+#endif
Options() { downstreamArgs.addName("slang"); }