Sign in
skia
/
skia
/
b746b1f59851b7af10fe91b4974872ec98b34d7f
/
.
/
tests
/
sksl
/
inliner
/
InlinerWrapsEarlyReturnsWithForLoop.sksl
blob: 364c8a643c1d25b9a142c502cfcdee2daea584f2 [
file
] [
log
] [
blame
]
/*#pragma settings Default*/
uniform half4 color
;
inline
half4 returny
(
half4 c
)
{
if
(
c
.
x
>
c
.
y
)
return
c
.
xxxx
;
if
(
c
.
y
>
c
.
z
)
return
c
.
yyyy
;
return
c
.
zzzz
;
}
void
main
()
{
sk_FragColor
=
returny
(
color
);
}