mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-27 13:24:56 +00:00
Experimental support for inline swizzling for array types of len <= 4 e.g. v.xyz, v.argb, v.xxx
This commit is contained in:
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user