Sign in
skia
/
skia
/
b746b1f59851b7af10fe91b4974872ec98b34d7f
/
.
/
tests
/
sksl
/
inliner
/
ForWithoutReturnInsideCanBeInlined.sksl
blob: 178d1e11677d1fbcd99f4407b504618a39496af4 [
file
] [
log
] [
blame
]
uniform
int
value
;
inline
half4 loopy
(
int
v
)
{
half4 result
=
half4
(
1.0
);
for
(
int
x
=
0
;
x
<
5
;
++
x
)
{
if
(
x
==
v
)
result
=
half4
(
0.5
);
}
return
result
;
}
void
main
()
{
sk_FragColor
=
loopy
(
value
);
}