skia2/resources/sksl/inliner/TernaryTestCanBeInlined.sksl

10 lines
160 B
Plaintext
Raw Normal View History

uniform half4 colorGreen, colorRed;
inline bool test(half4 v) {
return bool(v.g);
}
half4 main() {
return test(colorGreen) ? colorGreen : colorRed;
}