skia2/tests/sksl/inliner/InlinerManglesNames.glsl
John Stiles 708faba16b Allow multiple expressions on the same statement to be inlined.
This will allow the inliner to successfully do more work in a single
pass.

Change-Id: I26e8831737c10bdf9a35eebd94ea8b74f6487077
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/386916
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-03-19 15:14:24 +00:00

13 lines
301 B
GLSL

out vec4 sk_FragColor;
uniform vec4 color;
vec4 main() {
float _1_c = color.x * color.y + color.z;
float a = _1_c;
float _2_c = color.y * color.z + color.w;
float b = _2_c;
float _3_c = color.z * color.w + color.x;
float c = _3_c;
return vec4(a, b, c * c, a * (b * c));
}