1// defines built-in interfaces supported by SkiaSL geometry shaders 2 3layout(builtin=10002) in sk_PerVertex { 4 layout(builtin=0) float4 sk_Position; 5 layout(builtin=1) float sk_PointSize; 6} sk_in[]; 7 8layout(builtin=10007) out sk_PerVertex { 9 layout(builtin=0) float4 sk_Position; 10 layout(builtin=1) float sk_PointSize; 11}; 12 13// sk_InvocationID exists, but is declared programmatically (to support a workaround) 14// layout(builtin=8) in int sk_InvocationID; 15 16sk_has_side_effects void EmitStreamVertex(int stream); 17sk_has_side_effects void EndStreamPrimitive(int stream); 18sk_has_side_effects void EmitVertex(); 19sk_has_side_effects void EndPrimitive(); 20