1/*#pragma settings NoGSInvocationsSupport*/ 2 3layout(points) in; 4 5// Subtle error: Declaring max_vertices before invocations causes us not to 6// apply the workaround fixup to max_vertices. It *should* be 4 (2*2) in the 7// GLSL, but is currently only 2. (skbug.com/10827) 8layout(line_strip, max_vertices = 2) out; 9layout(invocations = 2) in; 10 11void test() { 12 sk_Position = sk_in[0].sk_Position + float4(0.5, 0, 0, sk_InvocationID); 13 EmitVertex(); 14} 15 16void main() { 17 test(); 18 sk_Position = sk_in[0].sk_Position + float4(-0.5, 0, 0, sk_InvocationID); 19 EmitVertex(); 20} 21