blob: 50794e9f55fdb5b814cf8f9fa727c33e193ac3e3 [file] [log] [blame]
John Stiles469fb3c2021-09-30 12:00:09 -04001uniform half4 inputVal, expected;
John Stiles33ef30e2021-05-11 10:37:56 -04002uniform half4 colorGreen, colorRed;
3
4half4 main(float2 coords) {
5 const half4 constVal = half4(1.5707963268, 3.1415926536, 4.7123889804, 6.2831853072);
John Stiles469fb3c2021-09-30 12:00:09 -04006 return (degrees(inputVal.x) == expected.x &&
7 degrees(inputVal.xy) == expected.xy &&
8 degrees(inputVal.xyz) == expected.xyz &&
9 degrees(inputVal.xyzw) == expected.xyzw &&
John Stiles33ef30e2021-05-11 10:37:56 -040010 degrees(constVal.x) == expected.x &&
11 degrees(constVal.xy) == expected.xy &&
12 degrees(constVal.xyz) == expected.xyz &&
13 degrees(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
14}