1#include <metal_stdlib> 2#include <simd/simd.h> 3using namespace metal; 4struct Inputs { 5}; 6struct Outputs { 7 float4 sk_Position [[position]]; 8 int id [[user(locn1)]]; 9 float sk_PointSize [[point_size]]; 10}; 11 12vertex Outputs vertexMain(Inputs _in [[stage_in]], uint sk_VertexID [[vertex_id]], uint sk_InstanceID [[instance_id]]) { 13 Outputs _out; 14 (void)_out; 15 _out.id = sk_VertexID; 16 return (_out.sk_Position.y = -_out.sk_Position.y, _out); 17} 18