It seems that the Metal compiler is breaking compatibility with iOS 9 and earlier metal shader
This declaration (for a vertex declaration) was valid in iOS 9
struct VS_INPUT {
packed_float2 TexCoord [[attribute(8)]];
packed_float3 Vertex [[attribute(0)]];
};
Now produces an error:
error: type 'packed_float2' (aka 'packed_vec<float, 2>') is not valid for attribute 'attribute'
Even settings Metal Language version 1.0 or 1.1
So what is the solution ?