skia2/resources/sksl/shared/Discard.sksl

9 lines
141 B
Plaintext
Raw Normal View History

void main() {
half x;
switch (1) {
case 0: x = 0; break;
default: x = 1; discard;
}
sk_FragColor = half4(x);
}