summaryrefslogtreecommitdiffstats
path: root/tools/render-test/options.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-10-19 19:38:07 -0400
committerGitHub <noreply@github.com>2017-10-19 19:38:07 -0400
commit7ba937faa3f72b0f319150c3dde041d8a353c007 (patch)
tree4e4ac0f96ca2d9a7647f64e108498ea0d69c5acf /tools/render-test/options.cpp
parent88023aea669f258d66e53eab10215337a7f72853 (diff)
parent5a18dc704a2f5eecebcbdd77682a40ba8316d253 (diff)
Merge pull request #225 from csyonghe/master
Support running compute shaders in testing framework
Diffstat (limited to 'tools/render-test/options.cpp')
-rw-r--r--tools/render-test/options.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp
index 53f88b7a9..89a68b27f 100644
--- a/tools/render-test/options.cpp
+++ b/tools/render-test/options.cpp
@@ -92,6 +92,14 @@ void parseOptions(int* argc, char** argv)
}
gOptions.slangArgs[gOptions.slangArgCount++] = *argCursor++;
}
+ else if (strcmp(arg, "-compute") == 0)
+ {
+ gOptions.shaderType = ShaderProgramType::Compute;
+ }
+ else if (strcmp(arg, "-graphics") == 0)
+ {
+ gOptions.shaderType = ShaderProgramType::Graphics;
+ }
else
{
fprintf(stderr, "unknown option '%s'\n", arg);