blob: 080b1aa1ad5248d5d5deb5f1a54a3953713a8434 [file] [log] [blame]
// Runtime shaders require specific main signatures. Test that older signatures, or those intended
// for color filters don't work.
// Expect 4 errors
half4 main() { return half4(1); }
half4 main(half4 color) { return color; }
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
/*%%*
'main' parameters must be (float2, (vec4|float4|half4)?)
'main' parameters must be (float2, (vec4|float4|half4)?)
unknown identifier 'color'
'main' parameters must be (float2, (vec4|float4|half4)?)
unknown identifier 'color'
'main' parameters must be (float2, (vec4|float4|half4)?)
unknown identifier 'color'
*%%*/