aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/sksl_geom.include
blob: 18e779f330f343c9e2fbd9952669ed9ffde91ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
STRINGIFY(

// defines built-in interfaces supported by SkiaSL geometry shaders

layout(builtin=10002) in sk_PerVertex {
  layout(builtin=0) vec4 gl_Position;
  layout(builtin=1) float gl_PointSize;
  layout(builtin=3) float sk_ClipDistance[];
} sk_in[];

out sk_PerVertex {
    layout(builtin=0) vec4 gl_Position;
    layout(builtin=1) float gl_PointSize;
    layout(builtin=3) float sk_ClipDistance[];
};

layout(builtin=8) int sk_InvocationID;

void EmitStreamVertex(int stream);
void EndStreamPrimitive(int stream);
void EmitVertex();
void EndPrimitive();

)