struct aabb {
float x_minmax[2];
float y_minmax[2];
float z_minmax[2];
};
Why not just do struct aabb { float mins[3]; float maxs[3]; };
Why not just do struct aabb { float mins[3]; float maxs[3]; };
I'm guessing here. I haven't written video games in 20 years but struct packing/alignment was super important on the Sony PSP back then.
new_box.mins = _mm_min_ps(a.mins[3], b.mins[3]);