summaryrefslogtreecommitdiffstats
path: root/tools/render-test/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/options.cpp')
-rw-r--r--tools/render-test/options.cpp9
1 files changed, 9 insertions, 0 deletions
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