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