You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
590 B

uniform half4 input, expected;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const half4 constVal = half4(0, 1, 2, 3);
return (exp2(input.x) == expected.x &&
exp2(input.xy) == expected.xy &&
exp2(input.xyz) == expected.xyz &&
exp2(input.xyzw) == expected.xyzw &&
exp2(constVal.x) == expected.x &&
exp2(constVal.xy) == expected.xy &&
exp2(constVal.xyz) == expected.xyz &&
exp2(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
}