skia2/resources/sksl/errors/Ossfuzz38140.sksl
Ethan Nicholas c9d65f0b8a Fixed duplicate function definition error discovered by fuzzer
Bug: oss-fuzz:38140
Change-Id: I76a1b3ef8289b3089192d043d173677c00741a54
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/445836
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-09-10 17:35:52 +00:00

8 lines
167 B
Plaintext

half4 blend_src_over(half4 src, half4 dst) {
return src + (1 - src.a)*dst;
}
half4 main(half4 src, half4 dst) {
return blend_src_over(src, half4(1) - dst);
}