Sign in
skia
/
skia
/
f2cdf59d586ae9f8c5e0233c75cb903a90f1df3b
/
.
/
tests
/
sksl
/
inliner
/
TernaryTestCanBeInlined.sksl
blob: 25523eb90cd35adb80cc8a99b8eb468ff8273cf9 [
file
] [
log
] [
blame
]
uniform half4 color
;
inline
bool
test
(
half4 v
)
{
return
v
.
x
<=
0.5
;
}
void
main
()
{
sk_FragColor
=
test
(
color
)
?
half4
(
0.5
)
:
half4
(
1.0
);
}