с Metal, во время выполнения, когда я пытаюсь скомпилировать мой шейдер, я получаю сообщение об ошибке
Ошибка: недопустимое имя компонента вектора 'x'
![](https://i.stack.imgur.com/EhEpF.png)
Это хорошо работает, когда в macos 10.14 / 10.15 но на macos 10.11 на старой ма c mini это cra * sh! есть идеи почему?
using namespace metal;
struct Vertex {
packed_float3 position;
};
struct ProjectedVertex {
float4 position [[position]];
};
vertex ProjectedVertex vertexShader(constant Vertex *vertexArray [[buffer(0)]],
const unsigned int vertexId [[vertex_id]],
constant float4x4 &MVPMatrix [[buffer(1)]]) {
Vertex in = vertexArray[vertexId];
ProjectedVertex out;
out.position = float4(in.position.x, in.position.y, in.position.z, 1) * MVPMatrix;
return out;
}