skia2/resources/sksl/inliner/DoWhileBodyMustBeInlinedIntoAScope.sksl

15 lines
244 B
Plaintext
Raw Normal View History

uniform half4 colorGreen, colorRed;
inline half4 get() {
half4 x = colorGreen;
return x;
}
half4 main(float2 coords) {
half4 result = colorRed;
do
result = get();
while (result != colorGreen);
return result;
}