skia2/resources/sksl/inliner/SwizzleCanBeInlinedDirectly.sksl

10 lines
190 B
Plaintext
Raw Normal View History

uniform half4 colorRed;
half4 switchRedAndGreen(half4 v) {
return v.grba;
}
half4 main(float2 coords) {
return switchRedAndGreen(switchRedAndGreen(switchRedAndGreen(colorRed)));
}