Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
shared
/
WhileLoopControlFlow.glsl
blob: d8441c56f75f7b7b04cea9eaccbdb98471a327e2 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
vec4 main
()
{
vec4 x
=
vec4
(
1.0
,
1.0
,
1.0
,
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
;
}