From f6ff73fe3156215e75708d155fd240788134b1f2 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Sat, 15 Apr 2023 18:08:58 +0800 Subject: Add render api category to synthesized tests (#2808) --- tools/slang-test/slang-test-main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3