summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-15 18:08:58 +0800
committerGitHub <noreply@github.com>2023-04-15 18:08:58 +0800
commitf6ff73fe3156215e75708d155fd240788134b1f2 (patch)
tree4bd97d5685a7718f489785a80cb042019f1cfe3f /tools
parent2226ae0bbbf2cbd5ea2da8aaaa04c9c466af56c3 (diff)
Add render api category to synthesized tests (#2808)
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-test/slang-test-main.cpp6
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 4932861b0..739ea840e 100644
--- a/tools/slang-test/slang-test-main.cpp
+++ b/tools/slang-test/slang-test-main.cpp
@@ -3700,6 +3700,12 @@ static void _calcSynthesizedTests(TestContext* context, RenderApiType synthRende
TestDetails synthTestDetails(srcTest.options);
TestOptions& synthOptions = synthTestDetails.options;
+ // If there's a category associated with this render api, add it to the synthesized test
+ if(auto c = context->categorySet.find(RenderApiUtil::getApiName(synthRenderApiType)))
+ {
+ synthOptions.categories.add(c);
+ }
+
// Mark as synthesized
synthOptions.isSynthesized = true;