skia2/resources/sksl/runtime/ChildEffects.rts
John Stiles 1542db1a9b Add a test runtime effect for child effects.
I wasn't able to find any other test which exercised child color-filters
or child blenders. (SampleWithExplicitCoord evaluates from a shader.)

Change-Id: I58ecee3beca2d3dc11ded5de0eea031e1d7c3e1e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507922
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-02-12 01:06:57 +00:00

8 lines
160 B
Plaintext

uniform shader s1, s2;
uniform colorFilter c1, c2;
uniform blender b;
half4 main(float2 xy) {
return b.eval(c1.eval(s1.eval(xy)), c2.eval(s2.eval(xy)));
}