• Create Account

Banner advertising on our site currently available from just \$5!

### #Actualbelfegor

Posted 31 March 2013 - 05:41 AM

__declspec(align(16))
struct _Plane
{
float nx;
float ny;
float nz;
float d;
};


and now it works in Debug. But i don't understand why isn't it already 16byte aligned as data is 4 floats ?

sizeof(float) * 4 == sizeof(_Plane)


### #1belfegor

Posted 31 March 2013 - 05:38 AM

__declspec(align(16))
struct _Plane
{
float nx;
float ny;
float nz;
float d;
};


and now it works in Debug. But i don't understand why isn't it already 16byte aligned as data is 4 floats ?

PARTNERS