Sign in
android
/
platform
/
external
/
skia
/
92748af1a5
/
.
/
tests
/
sksl
/
inliner
/
InlinerWrapsEarlyReturnsWithForLoop.glsl
blob: fc31d91fc1a7d64e4c1ff5c44fb5e77b1767443e [
file
] [
log
] [
blame
]
#version 400
out
vec4 sk_FragColor
;
uniform vec4 color
;
vec4 returny
(
vec4 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
);
}