From 8ff7412f988c77f21196b907820b94aa67eb6f21 Mon Sep 17 00:00:00 2001 From: "YONGH\\yongh" Date: Thu, 19 Oct 2017 18:18:21 -0400 Subject: Support running and comparing execution results of compute shaders in testing framework. --- tools/render-test/options.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/render-test/options.cpp') 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); -- cgit v1.2.3