summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;