summaryrefslogtreecommitdiff
path: root/tools/render-test/options.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2018-03-20 17:14:12 -0400
committerTim Foley <tfoleyNV@users.noreply.github.com>2018-03-20 14:14:12 -0700
commit98b8e0c809ceab84cee25389e54f3f37d220d95e (patch)
tree7df9954689a6a727c39997c944c86003ce9018c0 /tools/render-test/options.h
parent72562144254145612c68534c6b7457764c28acf5 (diff)
SlangResult and small bug/typos fixes (#448)
* Fixed some small typos in api-users-guide.md * Fix some small typos in slang-test/main.cpp, render-test/render-d3d11.cpp * Remove exit() calls from test code. Added Slang::Result, which works in the same way as COM HRESULT. * FIx bug introduced when moving to Slang::Result - handling E_INVALIDARG on Dx11. * Fix the testing of feature levels on Dx11 renderer. * First attempt at README.md for slang-test. * Tidied up the slang-test README.md file. * Fix some small typos in tools/slang-test/main.cpp * Fix spaces -> tabs problems. Fix some small types.
Diffstat (limited to 'tools/render-test/options.h')
-rw-r--r--tools/render-test/options.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/render-test/options.h b/tools/render-test/options.h
index b48295878..a33172c6b 100644
--- a/tools/render-test/options.h
+++ b/tools/render-test/options.h
@@ -3,6 +3,8 @@
#include <stdint.h>
+#include "../../source/core/slang-result.h"
+
namespace renderer_test {
typedef intptr_t Int;
@@ -61,13 +63,6 @@ extern int gWindowWidth;
extern int gWindowHeight;
-void parseOptions(int* argc, char** argv);
-
-enum class Error
-{
- None = 0,
- InvalidParam,
- Unexpected,
-};
+SlangResult parseOptions(int* argc, char** argv);
} // renderer_test