Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualbelfegor

Posted 31 March 2013 - 05:41 AM

Ive added this

 

__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

Ive added this

__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