bool4 and an unexpected new perspective
This blog post is 20 paragraphs exposition and 2 paragraphs punchline. It is a follow-up to my previous post on vectorization. I mentioned there that Unity’s math package implements bool4 like this: struct bool4 { [MarshalAs(U1)] public bool x; [MarshalAs(U1)] public bool y; [MarshalAs(U1)] public bool z; [MarshalAs(U1)] public bool...
[Read More]