skia2/resources/sksl/errors/StaticSwitchConditionalBreak.sksl

13 lines
239 B
Plaintext
Raw Normal View History

uniform float unknownInput;
void main() {
const int x = 1;
@switch (x) {
case 1:
sk_FragColor = half4(1);
if (unknownInput == 2) break;
default:
sk_FragColor = half4(0);
}
}