Sign in
skia
/
skia
/
ed92d84ffd3aeb34c92e25ecb082f089703fc0ec
/
.
/
tests
/
sksl
/
shared
/
WhileLoopControlFlow.glsl
blob: 40164da630c7d5729014f9ab5c8ce7756f65911c [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
vec4 main
()
{
vec4 x
=
vec4
(
1.0
);
while
(
x
.
w
==
1.0
)
{
x
.
x
-=
0.25
;
if
(
x
.
x
<=
0.0
)
break
;
}
while
(
x
.
z
>
0.0
)
{
x
.
z
-=
0.25
;
if
(
x
.
w
==
1.0
)
continue
;
x
.
y
=
0.0
;
}
return
x
;
}