skia2/resources/sksl/inliner/InlineWithInoutArgument.sksl

13 lines
225 B
Plaintext
Raw Normal View History

uniform half4 colorGreen;
// We don't inline functions with out parameters. (skia:11326)
inline void outParameter(inout half4 x) {
x *= x;
}
half4 main() {
half4 c = colorGreen;
outParameter(c);
return c;
}