xref: /aosp_15_r20/external/skia/resources/sksl/shared/StaticSwitchWithConditionalBreak.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) break;
9        case 1:
10            value = 1.0;
11    }
12    sk_FragColor = value.xxxx;
13}
14