Home | History | Annotate | Download | only in sksl
      1 STRINGIFY(
      2 
      3 // defines built-in interfaces supported by SkiaSL geometry shaders
      4 
      5 layout(builtin=10002) in sk_PerVertex {
      6   layout(builtin=0) vec4 gl_Position;
      7   layout(builtin=1) float gl_PointSize;
      8   layout(builtin=3) float sk_ClipDistance[];
      9 } sk_in[];
     10 
     11 out sk_PerVertex {
     12     layout(builtin=0) vec4 gl_Position;
     13     layout(builtin=1) float gl_PointSize;
     14     layout(builtin=3) float sk_ClipDistance[];
     15 };
     16 
     17 layout(builtin=8) int sk_InvocationID;
     18 
     19 void EmitStreamVertex(int stream);
     20 void EndStreamPrimitive(int stream);
     21 void EmitVertex();
     22 void EndPrimitive();
     23 
     24 )
     25