1*c8dee2aaSAndroid Build Coastguard Workeruniform half4 testInputs; 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 const half4 constGreen = half4(0, 1, 0, 1); 7*c8dee2aaSAndroid Build Coastguard Worker const half4 constRed = half4(1, 0, 0, 1); 8*c8dee2aaSAndroid Build Coastguard Worker half4 expectedA = half4(0, 0, 1, 1); 9*c8dee2aaSAndroid Build Coastguard Worker half4 expectedB = half4(1, 1, 0, 0); 10*c8dee2aaSAndroid Build Coastguard Worker half4 expectedC = half4(0, 1, 1, 1); 11*c8dee2aaSAndroid Build Coastguard Worker 12*c8dee2aaSAndroid Build Coastguard Worker return (step(0.5, testInputs.x) == expectedA.x && 13*c8dee2aaSAndroid Build Coastguard Worker step(0.5, testInputs.xy) == expectedA.xy && 14*c8dee2aaSAndroid Build Coastguard Worker step(0.5, testInputs.xyz) == expectedA.xyz && 15*c8dee2aaSAndroid Build Coastguard Worker step(0.5, testInputs.xyzw) == expectedA.xyzw && 16*c8dee2aaSAndroid Build Coastguard Worker step(0.5, constVal.x) == expectedA.x && 17*c8dee2aaSAndroid Build Coastguard Worker step(0.5, constVal.xy) == expectedA.xy && 18*c8dee2aaSAndroid Build Coastguard Worker step(0.5, constVal.xyz) == expectedA.xyz && 19*c8dee2aaSAndroid Build Coastguard Worker step(0.5, constVal.xyzw) == expectedA.xyzw && 20*c8dee2aaSAndroid Build Coastguard Worker step(testInputs.x, constGreen.x) == expectedB.x && 21*c8dee2aaSAndroid Build Coastguard Worker step(testInputs.xy, constGreen.xy) == expectedB.xy && 22*c8dee2aaSAndroid Build Coastguard Worker step(testInputs.xyz, constGreen.xyz) == expectedB.xyz && 23*c8dee2aaSAndroid Build Coastguard Worker step(testInputs.xyzw, constGreen.xyzw) == expectedB.xyzw && 24*c8dee2aaSAndroid Build Coastguard Worker step(constVal.x, constGreen.x) == expectedB.x && 25*c8dee2aaSAndroid Build Coastguard Worker step(constVal.xy, constGreen.xy) == expectedB.xy && 26*c8dee2aaSAndroid Build Coastguard Worker step(constVal.xyz, constGreen.xyz) == expectedB.xyz && 27*c8dee2aaSAndroid Build Coastguard Worker step(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw && 28*c8dee2aaSAndroid Build Coastguard Worker step(colorRed.x, colorGreen.x) == expectedC.x && 29*c8dee2aaSAndroid Build Coastguard Worker step(colorRed.xy, colorGreen.xy) == expectedC.xy && 30*c8dee2aaSAndroid Build Coastguard Worker step(colorRed.xyz, colorGreen.xyz) == expectedC.xyz && 31*c8dee2aaSAndroid Build Coastguard Worker step(colorRed.xyzw, colorGreen.xyzw) == expectedC.xyzw && 32*c8dee2aaSAndroid Build Coastguard Worker step(constRed.x, constGreen.x) == expectedC.x && 33*c8dee2aaSAndroid Build Coastguard Worker step(constRed.xy, constGreen.xy) == expectedC.xy && 34*c8dee2aaSAndroid Build Coastguard Worker step(constRed.xyz, constGreen.xyz) == expectedC.xyz && 35*c8dee2aaSAndroid Build Coastguard Worker step(constRed.xyzw, constGreen.xyzw) == expectedC.xyzw) 36*c8dee2aaSAndroid Build Coastguard Worker ? colorGreen : colorRed; 37*c8dee2aaSAndroid Build Coastguard Worker} 38