skia2/tests/sksl/shared/GeometryGSInvocations.geom

12 lines
290 B
Plaintext
Raw Normal View History

/*#pragma settings GSInvocationsExtensionString*/
layout(points, invocations = 2) in;
layout(invocations = 3) in;
layout(line_strip, max_vertices = 2) out;
void main() {
sk_Position = sk_in[0].sk_Position + float4(-0.5, 0, 0, sk_InvocationID);
EmitVertex();
EndPrimitive();
}