Sign in
skia
/
skia
/
3658238492093ca6039e939c34e8e721f5cbbc85
/
.
/
resources
/
sksl
/
inliner
/
DoWhileTestCannotBeInlined.sksl
blob: 695b5b9c07449dbb225950fabfaf7e70b9b3c789 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
,
colorRed
;
inline
bool
shouldLoop
(
half4 value
)
{
return
value
!=
colorGreen
;
}
half4 main
(
float2 coords
)
{
half4 result
=
colorRed
;
do
{
result
=
colorGreen
;
}
while
(
shouldLoop
(
result
));
return
result
;
}