skia2/resources/sksl/shared/ConstantIf.sksl

9 lines
168 B
Plaintext
Raw Normal View History

void main() {
int x;
if (true) x = 1;
if (2 > 1) x = 2; else x = 3;
if (1 > 2) x = 4; else x = 5;
if (false) x = 6;
sk_FragColor.r = half(x);
}