Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
inliner
/
DoWhileTestCannotBeInlined.glsl
blob: 0d0ec899f3cf7516debfade8da24103d0fe29231 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform vec4 colorGreen
;
uniform vec4 colorRed
;
bool
shouldLoop_bh4
(
vec4 value
)
{
return
value
!=
colorGreen
;
}
vec4 main
()
{
vec4 result
=
colorRed
;
do
{
result
=
colorGreen
;
}
while
(
shouldLoop_bh4
(
result
));
return
result
;
}