You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After playing around with the language, I wanted to see if it supported the alignment of structs and or fields of said structs. I tried to do this, for example:
structVector3
{
float x, y, z @align(8);
}
However, that only aligns z to 8 bytes.
It does work if you do something like this:
structVector3
{
float x @align(8);
float y @align(8);
float z @align(8);
}
Or something like this:
structVector3
{
float x @align(8), y @align(8), z @align(8);
}
It isn't a make-or-break for me, but having that simple QoL feature is quite nice.
The text was updated successfully, but these errors were encountered:
After playing around with the language, I wanted to see if it supported the alignment of structs and or fields of said structs. I tried to do this, for example:
However, that only aligns z to 8 bytes.
It does work if you do something like this:
Or something like this:
It isn't a make-or-break for me, but having that simple QoL feature is quite nice.
The text was updated successfully, but these errors were encountered: