9c19b9f1ff
Change-Id: I4280b5710dd8749ba766ba74d7a8886bc4e024bb Bug: oss-fuzz:35124 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417200 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
13 lines
515 B
Plaintext
13 lines
515 B
Plaintext
// Runtime blend modes require specific main signatures.
|
|
// Ensure that signatures intended for other runtime effect types don't work.
|
|
|
|
// Expect 5 errors
|
|
|
|
half4 main() { return half4(1); }
|
|
half4 main(half4 src) { return src; }
|
|
half4 main(half2 coords, half4 src) { return src; }
|
|
half4 main(half2 coords, half4 src, half4 dst) { return src * dst; }
|
|
half4 main(half4 src, half4 dst, half4 bonusColor) { return src * dst; }
|
|
|
|
half4 main(half4 src, half4 dst) { return src * dst; } // the correct signature is allowed
|