#include using namespace metal; struct VertexIn { float2 position [[attribute(0)]]; float2 uv [[attribute(1)]]; }; struct VertexOut { float4 position [[position]]; float2 uv; }; vertex VertexOut vertex_main(VertexIn in [[stage_in]]) { VertexOut out; out.position = float4(in.position, 0.0, 1.0); out.uv = in.uv; return out; }