fa9a08369e
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>
24 lines
539 B
GLSL
24 lines
539 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
void main() {
|
|
float _0_scalar;
|
|
float _1_x = 1.0;
|
|
_1_x = length(1.0);
|
|
_1_x = distance(_1_x, 2.0);
|
|
_1_x = dot(_1_x, 2.0);
|
|
_1_x = normalize(_1_x);
|
|
_0_scalar = _1_x;
|
|
float x = _0_scalar;
|
|
|
|
vec2 _2_vector;
|
|
vec2 _3_x = vec2(1.0, 2.0);
|
|
_3_x = vec2(length(vec2(1.0, 2.0)));
|
|
_3_x = vec2(distance(_3_x, vec2(3.0, 4.0)));
|
|
_3_x = vec2(dot(_3_x, vec2(3.0, 4.0)));
|
|
_3_x = normalize(_3_x);
|
|
_2_vector = _3_x;
|
|
vec2 y = _2_vector;
|
|
|
|
sk_FragColor = vec4(x, y, 1.0);
|
|
}
|