skia2/resources/sksl/inliner/WhileBodyMustBeInlinedIntoAScope.sksl

15 lines
241 B
Plaintext
Raw Normal View History

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