Sign in
skia
/
skia
/
be82005209c06840f0d5b13156d160a3e0efe702
/
.
/
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
;
}