diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-07-01 16:11:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-01 16:11:56 -0400 |
| commit | 8c33e7b31d678fd46e336586f50e4af6428bb595 (patch) | |
| tree | 5c383593c4da137ad3214c92226e4ea6271a46a8 | |
| parent | 5c153295205d2d5d6340f3d569a550f4697946c5 (diff) | |
Ignore tests that don't have all the rendering APIs they require available. (#1419)
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index f2b51562e..f85ade2ea 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -2844,6 +2844,12 @@ static bool _canIgnore(TestContext* context, const TestDetails& details) return true; } + // Are the required rendering APIs enabled from the -api command line switch + if ((requirements.usedRenderApiFlags & context->options.enabledApis) != requirements.usedRenderApiFlags) + { + return true; + } + return false; } |
