skia2/tests/sksl/shared/StaticSwitchWithConditionalBreakInsideBlock.glsl

17 lines
316 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform float unknownInput;
void main() {
float value = 0.0;
switch (0) {
case 0:
value = 0.0;
if (unknownInput == 2.0) {
sk_FragColor = vec4(value);
break;
}
case 1:
value = 1.0;
}
}