xref: /aosp_15_r20/external/skia/resources/sksl/shared/StaticSwitchWithConditionalBreakInsideBlock.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform float unknownInput;
2
3void main() {
4    half value = 0.0;
5    switch (0) {
6        case 0:
7            value = 0.0;
8            if (unknownInput == 2) {
9                sk_FragColor = value.xxxx;
10                break;
11            }
12        case 1:
13            value = 1.0;
14    }
15}
16