aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-06-05 17:22:39 +0100
committergingerBill <bill@gingerbill.org>2021-06-05 17:22:39 +0100
commit599d18f26f25ca29e704190f25adcaa0bb9ed4f5 (patch)
tree11a65c0a536f0b3dc299b0043645f5b334a2ff7f /src/types.cpp
parent61084d832d893eac2f22e79797cfc5dd55570973 (diff)
Experimental support for inline swizzling for array types of len <= 4 e.g. `v.xyz`, `v.argb`, `v.xxx`
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 8a78e08d1..d6d4c943c 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -371,6 +371,8 @@ struct Selection {
Entity * entity;
Array<i32> index;
bool indirect; // Set if there was a pointer deref anywhere down the line
+ u8 swizzle_count; // maximum components = 4
+ u8 swizzle_indices; // 2 bits per component, representing which swizzle index
};
Selection empty_selection = {0};