Not doing so results in immediate crashes on Linux. Exclude MSVC since it apparently works anyway (larger default alignment?).
There are a myriad ways to do this. Perhaps it'd be cleaner to change the new[]/delete[] to one of the existing aligned allocation macros, or add ones for arrays specifically.
Just doing struct ALIGNED( 32 ) Fragment works too, but I imagine this may waste more memory(?)
Not doing so results in immediate crashes on Linux. Exclude MSVC since it apparently works anyway (larger default alignment?).
There are a myriad ways to do this. Perhaps it'd be cleaner to change the new[]/delete[] to one of the existing aligned allocation macros, or add ones for arrays specifically.
Just doing
struct ALIGNED( 32 ) Fragment
works too, but I imagine this may waste more memory(?)