skia2/resources/sksl/inliner/InlineWithModifiedArgument.sksl

13 lines
194 B
Plaintext
Raw Normal View History

uniform half4 colorGreen;
inline half parameterWrite(half x) {
x *= x;
return x;
}
half4 main(float2 coords) {
half4 c = colorGreen;
c.g = parameterWrite(c.g);
return c;
}