From 2d0912bfe2de7799b32e80722fa5c8dc279a339b Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 31 Jan 2024 03:28:04 +0800 Subject: Correctly apply glsl local size layout to entry points during lowering (#3528) * Correctly apply glsl local size layout to entry points during lowering * Test for glsl layout correctness --- source/slang/slang-parser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-parser.cpp') diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index f0c9e175f..f5312e645 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -7630,6 +7630,8 @@ namespace Slang { numThreadsAttrib = parser->astBuilder->create(); numThreadsAttrib->args.setCount(3); + for (auto& i : numThreadsAttrib->args) + i = nullptr; // Just mark the loc and name from the first in the list numThreadsAttrib->keywordName = getName(parser, "numthreads"); -- cgit v1.2.3