2021-04-12 13:49:20 +00:00
|
|
|
// Runtime shaders require specific main signatures. Test that older signatures, or those intended
|
|
|
|
// for color filters don't work.
|
|
|
|
|
2021-06-10 13:43:35 +00:00
|
|
|
// Expect 4 errors
|
2021-04-12 13:49:20 +00:00
|
|
|
|
|
|
|
half4 main() { return half4(1); }
|
|
|
|
half4 main(half4 color) { return color; }
|
2021-06-10 13:43:35 +00:00
|
|
|
half4 main(float2 xy, half4 color, half4 bonusColor) { return color; }
|
|
|
|
half4 main(half4 outOfOrderColor, float2 outOfOrderXy) { return color; }
|
|
|
|
|
|
|
|
half4 main(float2 xy, half4 color) { return color; } // the correct signature is allowed
|