summaryrefslogtreecommitdiffstats
path: root/source/slang/type-layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/type-layout.h')
-rw-r--r--source/slang/type-layout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/type-layout.h b/source/slang/type-layout.h
index 07530bdfc..66763c8a7 100644
--- a/source/slang/type-layout.h
+++ b/source/slang/type-layout.h
@@ -251,6 +251,12 @@ public:
String semanticName;
int semanticIndex;
+ // The stage this variable belongs to, in case it is
+ // stage-specific.
+ // TODO: This is wasteful to be storing on every single
+ // variable layout.
+ Stage stage = Stage::Unknown;
+
// The start register(s) for any resources
struct ResourceInfo
{