Dear all,
I currently migrate my application to use Vector4f instead of Vector3f to benefit the vectorisation.
However I face an alignment error at runtime. (I use the latest clang from xcode on mac os x)
Vector4f toPoint(const Vector4f &v) {
return Vector4f( v.x(), v.y(), v.z(), 1 );
}
void process( const Vector4f &v ) {
// do process my vector
}
is there an issue with the alignment doing the following?
Vector4f v (1,3,4,0);
process( toPoint(v) );
Please let me know, I have the suspicion that the error comes from there, I wonder if I am right.
Best regards,
Sylvain