summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-modifier.h
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-ast-modifier.h
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-ast-modifier.h')
-rw-r--r--source/slang/slang-ast-modifier.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h
index 2cf4c93cf..97487f131 100644
--- a/source/slang/slang-ast-modifier.h
+++ b/source/slang/slang-ast-modifier.h
@@ -748,6 +748,14 @@ class DisableArrayFlatteningAttribute : public Attribute
class GLSLLayoutLocalSizeAttribute : public Attribute
{
SLANG_AST_CLASS(GLSLLayoutLocalSizeAttribute)
+
+ // The number of threads to use along each axis
+ //
+ // TODO: These should be accessors that use the
+ // ordinary `args` list, rather than side data.
+ int32_t x;
+ int32_t y;
+ int32_t z;
};
// TODO: for attributes that take arguments, the syntax node