From 66bae403827a37bdc587f3356cc58fde166d04a1 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 14 Jul 2017 14:38:13 -0700 Subject: Add reflection support for GLSL thread-group-size modifier Fixes #15 These are the modifiers like: layout(local_size_x = 16) in; Unlike the HLSL case, these don't get attache to the entry point function itself, so there is a bit more work involed in looking them up. Just to make sure I didn't mess up the HLSL case, I went ahead and added two tests for this capability: one for GLSL and one for HLSL. --- source/slang/parser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/slang/parser.cpp') diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp index e0ff85164..1ad0c6b94 100644 --- a/source/slang/parser.cpp +++ b/source/slang/parser.cpp @@ -748,6 +748,9 @@ namespace Slang CASE(set, GLSLSetLayoutModifier); CASE(location, GLSLLocationLayoutModifier); CASE(push_constant, GLSLPushConstantLayoutModifier); + CASE(local_size_x, GLSLLocalSizeXLayoutModifier); + CASE(local_size_y, GLSLLocalSizeYLayoutModifier); + CASE(local_size_z, GLSLLocalSizeZLayoutModifier); #undef CASE else -- cgit v1.2.3