12 lines
442 B
Plaintext
12 lines
442 B
Plaintext
|
// Runtime blend modes require specific main signatures.
|
||
|
// Ensure that signatures intended for other runtime effect types don't work.
|
||
|
|
||
|
// Expect 4 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) { return src * dst; } // the correct signature is allowed
|