skia2/resources/sksl/shared/TernaryAsLValueFoldableTest.sksl

9 lines
183 B
Plaintext
Raw Normal View History

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