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