• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 colorGreen, colorRed;
2
3half4 main(float2 coords) {
4    bool4 inputVal = bool4(colorGreen);
5    const bool4 constVal = bool4(false, true, false, true);
6    bool4 expected = bool4(true, false, true, false);
7    return (not(inputVal.xy)   == expected.xy    &&
8            not(inputVal.xyz)  == expected.xyz   &&
9            not(inputVal.xyzw) == expected.xyzw  &&
10            not(constVal.xy)   == expected.xy    &&
11            not(constVal.xyz)  == expected.xyz   &&
12            not(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
13}
14