skia2/resources/sksl/inliner/IfElseBodyMustBeInlinedIntoAScope.sksl

16 lines
244 B
Plaintext
Raw Normal View History

uniform half4 colorGreen, colorRed;
inline half4 elseBody() {
half4 x = colorGreen;
return x;
}
half4 main(float2 coords) {
half4 c = colorRed;
if (colorGreen.g == 0)
;
else
c = elseBody();
return c;
}