summaryrefslogtreecommitdiffstats
path: root/tools/render-test/options.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-12 10:48:36 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-12 12:12:20 -0700
commit5fe2cf3279c279750d4821a9fa97bdbbe876e568 (patch)
treeb929d3d7f77da2ba538846f598e7eeb0a302b0cc /tools/render-test/options.cpp
parent4d63b6fe73018ae253bbef0075478f5989ad279a (diff)
GLSL: get GLSL limping in `render-test`
The test case that is there right now is nominally a cross-compilation test, but for right now it uses the preprocessor to present completely different code for HLSL and GLSL compilation. This change is really just fleshing out the OpenGL side of `render-test` enough that it can produce images using OpenGL to enable further testing.
Diffstat (limited to 'tools/render-test/options.cpp')
-rw-r--r--tools/render-test/options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp
index 9cfbb81fb..260e6f46c 100644
--- a/tools/render-test/options.cpp
+++ b/tools/render-test/options.cpp
@@ -56,6 +56,10 @@ void parseOptions(int* argc, char** argv)
{
gOptions.mode = Mode::HLSL;
}
+ else if( strcmp(arg, "-glsl") == 0 )
+ {
+ gOptions.mode = Mode::GLSL;
+ }
else if( strcmp(arg, "-slang") == 0 )
{
gOptions.mode = Mode::Slang;