diff options
Diffstat (limited to 'tools/render-test')
| -rw-r--r-- | tools/render-test/options.cpp | 6 | ||||
| -rw-r--r-- | tools/render-test/options.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp index 3b2c07ce6..2f304b7c0 100644 --- a/tools/render-test/options.cpp +++ b/tools/render-test/options.cpp @@ -143,7 +143,11 @@ static gfx::DeviceType _toRenderType(Slang::RenderApiType apiType) } else if (argValue == "-emit-spirv-directly") { - outOptions.generateSPIRVDirectly = true; + outOptions.generateSPIRVDirectly= true; + } + else if (argValue == "-emit-spirv-via-glsl") + { + outOptions.generateSPIRVDirectly= false; } else if (argValue == "-only-startup") { 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"); } |
