7bb100ec04
This is similar to the intrinsic optimization for any() and all(). Tests for all three intrinsics have been bulked up a bit as well. Change-Id: I262b9448e543b4709d1e7c8585f74a206c4b5abd Reviewed-on: https://skia-review.googlesource.com/c/skia/+/406576 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
24 lines
657 B
GLSL
24 lines
657 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorRed;
|
|
uniform vec4 colorGreen;
|
|
vec4 main() {
|
|
bool _0_a = true;
|
|
bool _1_b = false;
|
|
bool _2_c = true;
|
|
bool _3_d = false;
|
|
bool _4_e = true;
|
|
bool _5_f = false;
|
|
bool _6_g = true;
|
|
bool _7_h = false;
|
|
bool _8_i = true;
|
|
bool _9_j = false;
|
|
bool _12_k = true;
|
|
bool _13_l = false;
|
|
bool _14_m = true;
|
|
bool _15_n = false;
|
|
bool _16_o = true;
|
|
bool _17_p = false;
|
|
return ((((((((((((((_0_a && !_1_b) && _2_c) && !_3_d) && _4_e) && !_5_f) && _6_g) && !_7_h) && _8_i) && !_9_j) && _12_k) && !_13_l) && _14_m) && !_15_n) && _16_o) && !_17_p ? colorGreen : colorRed;
|
|
}
|