1cb93a386Sopenharmony_ciuniform half4 testInputs; 2cb93a386Sopenharmony_ciuniform half4 colorGreen, colorRed; 3cb93a386Sopenharmony_ci 4cb93a386Sopenharmony_cihalf4 main(float2 coords) { 5cb93a386Sopenharmony_ci const half4 constVal = half4(-1.25, 0, 0.75, 2.25); 6cb93a386Sopenharmony_ci const half4 constGreen = half4(0, 1, 0, 1); 7cb93a386Sopenharmony_ci half4 expectedA = half4(0, 0, 1, 1); 8cb93a386Sopenharmony_ci half4 expectedB = half4(1, 1, 0, 0); 9cb93a386Sopenharmony_ci 10cb93a386Sopenharmony_ci return (step(0.5, testInputs.x) == expectedA.x && 11cb93a386Sopenharmony_ci step(0.5, testInputs.xy) == expectedA.xy && 12cb93a386Sopenharmony_ci step(0.5, testInputs.xyz) == expectedA.xyz && 13cb93a386Sopenharmony_ci step(0.5, testInputs.xyzw) == expectedA.xyzw && 14cb93a386Sopenharmony_ci step(0.5, constVal.x) == expectedA.x && 15cb93a386Sopenharmony_ci step(0.5, constVal.xy) == expectedA.xy && 16cb93a386Sopenharmony_ci step(0.5, constVal.xyz) == expectedA.xyz && 17cb93a386Sopenharmony_ci step(0.5, constVal.xyzw) == expectedA.xyzw && 18cb93a386Sopenharmony_ci step(testInputs.x, constGreen.x) == expectedB.x && 19cb93a386Sopenharmony_ci step(testInputs.xy, constGreen.xy) == expectedB.xy && 20cb93a386Sopenharmony_ci step(testInputs.xyz, constGreen.xyz) == expectedB.xyz && 21cb93a386Sopenharmony_ci step(testInputs.xyzw, constGreen.xyzw) == expectedB.xyzw && 22cb93a386Sopenharmony_ci step(constVal.x, constGreen.x) == expectedB.x && 23cb93a386Sopenharmony_ci step(constVal.xy, constGreen.xy) == expectedB.xy && 24cb93a386Sopenharmony_ci step(constVal.xyz, constGreen.xyz) == expectedB.xyz && 25cb93a386Sopenharmony_ci step(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed; 26cb93a386Sopenharmony_ci} 27