From 2ca792cd01348ad2c849b450d3e397c036578245 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 12 Mar 2019 16:37:59 -0400 Subject: Add -profile option to render-test to override a profile to use (#898) --- tools/render-test/options.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/render-test/options.cpp') diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp index 965a81e27..b6208c4b3 100644 --- a/tools/render-test/options.cpp +++ b/tools/render-test/options.cpp @@ -89,6 +89,15 @@ SlangResult parseOptions(int argc, const char*const* argv, Slang::WriterHelper s } gOptions.outputPath = *argCursor++; } + else if (strcmp(arg, "-profile") == 0) + { + if (argCursor == argEnd) + { + stdError.print("expected argument for '%s' option\n", arg); + return SLANG_FAIL; + } + gOptions.profileName = *argCursor++; + } else if( strcmp(arg, "-xslang") == 0 ) { // This is an option that we want to pass along to Slang -- cgit v1.2.3