Unify semantics of the built-in swizzle procedure with the selector expression semantics e.g. .xyz

This commit is contained in:
gingerBill
2021-08-09 19:37:58 +01:00
parent aebfa4b28e
commit 01f431b01f
6 changed files with 175 additions and 28 deletions
+5
View File
@@ -48,6 +48,7 @@ enum lbAddrKind {
lbAddr_RelativeSlice,
lbAddr_Swizzle,
lbAddr_SwizzleLarge,
};
struct lbAddr {
@@ -78,6 +79,10 @@ struct lbAddr {
u8 count; // 2, 3, or 4 components
u8 indices[4];
} swizzle;
struct {
Type *type;
Slice<i32> indices;
} swizzle_large;
};
};