summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-01-31 03:28:04 +0800
committerGitHub <noreply@github.com>2024-01-30 11:28:04 -0800
commit2d0912bfe2de7799b32e80722fa5c8dc279a339b (patch)
tree152bfe7c054f035090c84fabd7d9d12e9f5fc362 /source/slang/slang-parser.cpp
parent470c5a28f5b84353f077c2d871db65cddd5f923a (diff)
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
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp2
1 files changed, 2 insertions, 0 deletions
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<GLSLLayoutLocalSizeAttribute>();
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");