diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-03-12 16:37:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-12 16:37:59 -0400 |
| commit | 2ca792cd01348ad2c849b450d3e397c036578245 (patch) | |
| tree | 041129cdfb66f2b7900a41a341325c653351ac29 /tools/render-test/options.cpp | |
| parent | 3cfccfd4991df01deaf132f11b4eaa6848a32c4e (diff) | |
Add -profile option to render-test to override a profile to use (#898)
Diffstat (limited to 'tools/render-test/options.cpp')
| -rw-r--r-- | tools/render-test/options.cpp | 9 |
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 |
