So using
bool enabled;
int padd1; int padd2; int padd3;
instead would fix it? Makes sense! And it isn't that bad as i remember it.
So using
bool enabled;
int padd1; int padd2; int padd3;
instead would fix it? Makes sense! And it isn't that bad as i remember it.
yep!... it is quite simple actually... you just have to think that the padding goes before the given type to produce the proper alignment of the variable or struct, instead of going after it as a filling!... float is aligned to 4 bytes, float2 aligned to 8 bytes, while both float3 and float4 aligned to 16 bytes