Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / resources / sksl / shared / ReturnsValueOnEveryPathES2.sksl
1 uniform half4 colorGreen, colorRed;
2 uniform half unknownInput; // = 1
3
4 bool simple() {
5     return true;
6 }
7
8 bool return_on_both_sides() {
9     if (unknownInput == 1) return true; else return true;
10 }
11
12 bool for_inside_body() {
13     for (int x=0; x<=10; ++x) { return true; }
14 }
15
16 bool after_for_body() {
17     for (int x=0; x<=10; ++x) { simple(); }
18     return true;
19 }
20
21 bool for_with_double_sided_conditional_return() {
22     for (int x=0; x<=10; ++x) {
23         if (unknownInput == 1) return true; else return true;
24     }
25 }
26
27 bool if_else_chain() {
28     if (unknownInput == 1)
29         return true;
30     else if (unknownInput == 2)
31         return false;
32     else if (unknownInput == 3)
33         return true;
34     else if (unknownInput == 4)
35         return false;
36     else
37         return true;
38 }
39
40 half4 main(float2 coords) {
41     return  simple() &&
42             return_on_both_sides() &&
43             for_inside_body() &&
44             after_for_body() &&
45             for_with_double_sided_conditional_return() &&
46             if_else_chain() ? colorGreen : colorRed;
47 }