SPV: Handle stride decorations for arrays of arrays, and using multiple type instances when strides are used.

This commit is contained in:
John Kessenich
2015-12-29 21:27:24 -07:00
parent 4998789d4e
commit c9e0a42b92
5 changed files with 277 additions and 249 deletions

View File

@@ -102,7 +102,7 @@ public:
Id makeStructResultType(Id type0, Id type1);
Id makeVectorType(Id component, int size);
Id makeMatrixType(Id component, int cols, int rows);
Id makeArrayType(Id element, unsigned size);
Id makeArrayType(Id element, unsigned size, int stride); // 0 means no stride decoration
Id makeRuntimeArray(Id element);
Id makeFunctionType(Id returnType, std::vector<Id>& paramTypes);
Id makeImageType(Id sampledType, Dim, bool depth, bool arrayed, bool ms, unsigned sampled, ImageFormat format);