summaryrefslogtreecommitdiff
path: root/tools/render-test/options.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-19 10:23:16 -0700
committerGitHub <noreply@github.com>2017-06-19 10:23:16 -0700
commitbb9ca29160f5d95f3860504262693ea650d96be5 (patch)
tree04f502283ed818f661e368b3d8d1ba5ce875d1d2 /tools/render-test/options.h
parentcafed774d99f95bce6f182599913f3417dc68a3a (diff)
parent634522da69b14b38c15b14d6b717b1289812e9bb (diff)
Merge pull request #29 from tfoleyNV/auto-import
Allow for automatic importing of Slang code
Diffstat (limited to 'tools/render-test/options.h')
-rw-r--r--tools/render-test/options.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/render-test/options.h b/tools/render-test/options.h
index 0731a5dc9..fbc615d56 100644
--- a/tools/render-test/options.h
+++ b/tools/render-test/options.h
@@ -25,12 +25,21 @@ enum class Mode
GLSLCrossCompile,
};
+enum
+{
+ // maximum number of command-line arguments to pass along to slang
+ kMaxSlangArgs = 16,
+};
+
struct Options
{
char const* appName = "render-test";
char const* sourcePath = nullptr;
char const* outputPath = nullptr;
Mode mode = Mode::Slang;
+
+ char const* slangArgs[kMaxSlangArgs];
+ int slangArgCount = 0;
};
extern Options gOptions;