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