summaryrefslogtreecommitdiff
path: root/source/slang/type-layout.h
diff options
context:
space:
mode:
authorYong He <yongh@outlook.com>2018-01-03 17:12:46 -0800
committerYong He <yongh@outlook.com>2018-01-03 17:12:46 -0800
commit61b206db5fc5a4c9d42fa3fbb4f50624b6c6c6c5 (patch)
treeaca01d76f4dd30ed09f9b652a16ed06109a5789b /source/slang/type-layout.h
parent771da268461e9ad3addf94a452a4c13ee291918e (diff)
parent5da16a6360e40b9fd4d2275a5ef5b1af740c4abb (diff)
Merge https://github.com/shader-slang/slang
Diffstat (limited to 'source/slang/type-layout.h')
-rw-r--r--source/slang/type-layout.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/slang/type-layout.h b/source/slang/type-layout.h
index 38fabb009..66f6025b4 100644
--- a/source/slang/type-layout.h
+++ b/source/slang/type-layout.h
@@ -340,7 +340,12 @@ public:
class ArrayTypeLayout : public TypeLayout
{
public:
- // The layout used for the element type
+ // The original type layout for the array elements,
+ // which doesn't include any adjustments based on
+ // resource type splitting.
+ RefPtr<TypeLayout> originalElementTypeLayout;
+
+ // The *adjusted* layout used for the element type
RefPtr<TypeLayout> elementTypeLayout;
// the stride between elements when used in
@@ -380,6 +385,9 @@ public:
// one will appear in `fields`, while all of
// them will be reflected in `mapVarToLayout`.
//
+ // TODO: This should map from a declaration to the *index*
+ // in the array above, rather than to the actual pointer,
+ // so that we
Dictionary<Decl*, RefPtr<VarLayout>> mapVarToLayout;
};