• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Runtime shaders require specific main signatures. Test that older signatures, or those intended
2// for color filters don't work.
3
4// Expect 4 errors
5
6half4 main() { return half4(1); }
7half4 main(half4 color) { return color; }
8half4 main(float2 xy, half4 color, half4 bonusColor) { return color; }
9half4 main(half4 outOfOrderColor, float2 outOfOrderXy) { return color; }
10
11half4 main(float2 xy, half4 color) { return color; }  // the correct signature is allowed
12