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