#include #include typedef int type3[5]; struct fooInput { }; struct fooOutput { metal::float4 member [[position]]; }; vertex fooOutput foo( metal::uint vi [[vertex_id]] ) { return fooOutput { static_cast(int4(type3 {1, 2, 3, 4, 5}[vi])) }; }