Sign in
skia
/
skia
/
c3ad6a1e59c9a293ebdc654e61d117b495599df6
/
.
/
tests
/
sksl
/
inliner
/
IfTestCanBeInlined.sksl
blob: ac3e0db804d0fa0c33161a19777515881dd7378a [
file
] [
log
] [
blame
]
uniform half4 color
;
inline
bool
ifTest
(
half4 v
)
{
return
color
.
x
>=
0.5
;
}
void
main
()
{
if
(
ifTest
(
color
))
sk_FragColor
=
half4
(
1.0
);
else
sk_FragColor
=
half4
(
0.5
);
}