xref: /aosp_15_r20/external/skia/tests/sksl/folding/ArraySizeFolding.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1
2uniform vec4 colorRed;
3uniform vec4 colorGreen;
4bool check_array_is_int_2_bi(int x[2]) {
5    return true;
6}
7bool check_array_is_float_3_bf(float x[3]) {
8    return true;
9}
10bool test_param_bff(float a[3], float b[3]) {
11    return true && check_array_is_float_3_bf(b);
12}
13vec4 main() {
14    float f[3];
15    float g[3];
16    int _3_b[2];
17    int _4_c[2];
18    int _5_d[2];
19    int _6_e[2];
20    int _7_f[2];
21    return ((((check_array_is_int_2_bi(_3_b) && check_array_is_int_2_bi(_4_c)) && check_array_is_int_2_bi(_5_d)) && check_array_is_int_2_bi(_6_e)) && check_array_is_int_2_bi(_7_f)) && test_param_bff(f, g) ? colorGreen : colorRed;
22}
23