[...] I solved the problem by changing the struct to look like this. align(16) struct Pos { float x = float.nan; float y = float.nan; float z = float.nan; float w = float.nan; }
wow that's quite strange. FP members should be initialized without initializer ! Eg you should get the same with
align(16) struct Pos { float x, y, ,z, w; }