50b1b2b90d
This CL will be used to test for potential performance regressions (or improvements?) that we might incur by disabling this optimization pass. It will be reverted in ~1 day. Change-Id: I775cdb0c95df81fa25ebbd66e4ff01f64c660f68 Bug: skia:11319 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/378456 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
17 lines
458 B
GLSL
17 lines
458 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();
|
|
false;
|
|
|
|
EndPrimitive();
|
|
}
|
|
}
|