• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 testInputs;
2uniform half4 colorGreen, colorRed;
3
4half4 main(float2 coords) {
5    half4 expectedA = half4(0.5, 0.5, 0.75, 2.25);
6    half4 expectedB = half4(0, 1, 0.75, 2.25);
7    return (max(testInputs.x,    0.5)             == expectedA.x     &&
8            max(testInputs.xy,   0.5)             == expectedA.xy    &&
9            max(testInputs.xyz,  0.5)             == expectedA.xyz   &&
10            max(testInputs.xyzw, 0.5)             == expectedA.xyzw  &&
11            max(testInputs.x,    colorGreen.x)    == expectedB.x     &&
12            max(testInputs.xy,   colorGreen.xy)   == expectedB.xy    &&
13            max(testInputs.xyz,  colorGreen.xyz)  == expectedB.xyz   &&
14            max(testInputs.xyzw, colorGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed;
15}
16