Sign in
skia
/
skia
/
9f39daff8fd5e924afa750c2daf25fd16f107c2d
/
.
/
tests
/
sksl
/
inliner
/
WhileTestCannotBeInlined.glsl
blob: 2b2617addef3b5d43af93a8c23cb5a7b4d0a2763 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform vec4 colorGreen
;
uniform vec4 colorRed
;
bool
shouldLoop_bh4
(
vec4 v
)
{
return
v
!=
colorGreen
;
}
vec4 main
()
{
vec4 result
=
colorRed
;
while
(
shouldLoop_bh4
(
result
))
{
result
=
colorGreen
;
}
return
result
;
}