skia2/resources/sksl/shared/TernaryAsLValueFoldableTest.sksl

8 lines
164 B
Plaintext
Raw Normal View History

void main() {
half r, g;
(true ? r : g) = half(sqrt(1));
(false ? r : g) = half(sqrt(0));
sk_FragColor.x = half(r);
sk_FragColor.y = half(g);
}