From 599d18f26f25ca29e704190f25adcaa0bb9ed4f5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 5 Jun 2021 17:22:39 +0100 Subject: Experimental support for inline swizzling for array types of len <= 4 e.g. `v.xyz`, `v.argb`, `v.xxx` --- src/types.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/types.cpp') 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 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}; -- cgit v1.2.3