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