1uniform half4 testInputs; // equals (-1.25, 0, 0.75, 2.25) 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 const half4 constVal = half4(-1.25, 0, 0.75, 2.25); 6 half4 expected = half4(-1, 0, 1, 3); 7 return (ceil(testInputs.x) == expected.x && 8 ceil(testInputs.xy) == expected.xy && 9 ceil(testInputs.xyz) == expected.xyz && 10 ceil(testInputs.xyzw) == expected.xyzw && 11 ceil(constVal.x) == expected.x && 12 ceil(constVal.xy) == expected.xy && 13 ceil(constVal.xyz) == expected.xyz && 14 ceil(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed; 15} 16