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