blob: 9965c9ae29f9f74f757423c23d8fd49c0bacb2f5 [file] [log] [blame]
// Runtime color filters require specific main signatures. Test that older signatures, or those
// intended for shaders don't work.
// Expect 4 errors
half4 main() { return half(1); }
half4 main(float2 coord) { return half4(1); }
half4 main(float2 coord, half4 color) { return color; }
half4 main(half4 color, half4 bonusColor) { return color; }
half4 main(half4 color) { return color; } // the correct signature is allowed
/*%%*
'main' parameter must be 'vec4', 'float4', or 'half4'
'main' parameter must be 'vec4', 'float4', or 'half4'
'main' parameter must be 'vec4', 'float4', or 'half4'
unknown identifier 'color'
'main' parameter must be 'vec4', 'float4', or 'half4'
unknown identifier 'color'
*%%*/