skia2/resources/sksl/shared/TernaryAsLValueFoldableTest.sksl

9 lines
170 B
Plaintext
Raw Normal View History

uniform half unknownInput; // 1
half4 main() {
half r, g;
(true ? r : g) = 1 - unknownInput;
(false ? r : g) = unknownInput;
return half4(r, g, 0, 1);
}