Sign in
skia
/
skia
/
dda1d31623a6df7eb2b4e7c8633bd8675f333353
/
.
/
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
);
}