• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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};
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.id = sk_VertexID;
15    return _out;
16}
17