skia2/resources/sksl/inliner/InlineWithUnmodifiedArgument.sksl

14 lines
261 B
Plaintext
Raw Normal View History

inline half square(half x) {
return x * x;
}
half4 main(float2 coords) {
half one = 1;
half4 result = half4(123);
result.r = square(0);
result.b = square(result.r);
result.g = square(1);
result.a = square(one);
return result;
}