skia2/tests/sksl/shared/golden/NegatedVectorLiteral.glsl
John Stiles fa9a08369e Remove unnecessary Blocks from the inliner.
If we aren't wrapping the inlined function body in a loop, there's no
need to add a scopeless Block; we've already got one. This doesn't
affect the final output meaningfully--it just suppresses a newline--but
it's one fewer IRNode allocation.

Change-Id: Ib7b0014e908586d8acfcf6c23520873fad31d0b7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/345163
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-17 19:35:35 +00:00

15 lines
250 B
GLSL

out vec4 sk_FragColor;
void main() {
sk_FragColor.x = 1.0;
sk_FragColor.y = 1.0;
sk_FragColor.z = 1.0;
sk_FragColor.w = 1.0;
sk_FragColor.x = 1.0;
sk_FragColor.y = 1.0;
sk_FragColor.z = 1.0;
sk_FragColor.w = 1.0;
}