1uniform half4 inputVal; 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 const half4 constVal = half4(3, 0, 4, 12); 6 half4 expected = half4(3, 3, 5, 13); 7 8 return (length(inputVal.x) == expected.x && 9 length(inputVal.xy) == expected.y && 10 length(inputVal.xyz) == expected.z && 11 length(inputVal.xyzw) == expected.w && 12 length(constVal.x) == expected.x && 13 length(constVal.xy) == expected.y && 14 length(constVal.xyz) == expected.z && 15 length(constVal.xyzw) == expected.w) ? colorGreen : colorRed; 16} 17