diff options
| author | gingerBill <bill@gingerbill.org> | 2021-06-05 17:22:39 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-06-05 17:22:39 +0100 |
| commit | 599d18f26f25ca29e704190f25adcaa0bb9ed4f5 (patch) | |
| tree | 11a65c0a536f0b3dc299b0043645f5b334a2ff7f /src/types.cpp | |
| parent | 61084d832d893eac2f22e79797cfc5dd55570973 (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.cpp | 2 |
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}; |