summaryrefslogtreecommitdiff
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/type-layout.h b/source/slang/type-layout.h
index 971088aac..d078d9554 100644
--- a/source/slang/type-layout.h
+++ b/source/slang/type-layout.h
@@ -218,6 +218,7 @@ typedef unsigned int VarLayoutFlags;
enum VarLayoutFlag : VarLayoutFlags
{
IsRedeclaration = 1 << 0, ///< This is a redeclaration of some shader parameter
+ HasSemantic = 1 << 1,
};
// A reified layout for a particular variable, field, etc.
@@ -241,6 +242,13 @@ public:
String systemValueSemantic;
int systemValueSemanticIndex;
+ // General cse semantic name and index
+ // TODO: this and the system-value field are redundant
+ // TODO: the `VarLayout` type is getting bloated; we need to not store this
+ // information unless actually required.
+ String semanticName;
+ int semanticIndex;
+
// The start register(s) for any resources
struct ResourceInfo
{