0d07e14f1e
Previously, the declaration didn't link back to function definition. This makes the function appear to be undefined, which inhibits inlining and also makes it difficult for us to validate the presence of a definition for every called function. Change-Id: I220ab502634cb3e1d337c23bac150af9aa6370b1 Bug: skia:10902 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/349063 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
16 lines
443 B
GLSL
16 lines
443 B
GLSL
#version 400
|
|
int sk_InvocationID;
|
|
layout (points) in ;
|
|
layout (line_strip, max_vertices = 4) out ;
|
|
void main() {
|
|
for (sk_InvocationID = 0;sk_InvocationID < 2; sk_InvocationID++) {
|
|
gl_Position = gl_in[0].gl_Position + vec4(0.5, 0.0, 0.0, float(sk_InvocationID));
|
|
EmitVertex();
|
|
|
|
gl_Position = gl_in[0].gl_Position + vec4(-0.5, 0.0, 0.0, float(sk_InvocationID));
|
|
EmitVertex();
|
|
|
|
EndPrimitive();
|
|
}
|
|
}
|