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