blob: 91f75eec7fd2cc51f342eb6a02a8d651c435ef78 [file] [log] [blame]
John Kessenich34718202017-04-11 17:30:08 -06001float4 c4;
2float4 t4;
3float4 f4;
4float t;
5float f;
6
7float4 vectorCond()
8{
John Kessenich636b62d2017-04-11 19:45:00 -06009 return (c4 ? t4 : f4) +
John Kessenichb5e739c2017-04-11 20:17:23 -060010 (c4 ? t : f ) +
John Kessenich32a385e2017-04-20 21:32:16 -060011 (t4 < f4 ? t4 : f4) +
12 (c4 ? t : f4);
13}
14
15float4 scalarCond()
16{
17 float4 ret = t != f ? t * f4 : 1;
18 return ret;
John Kessenichb5e739c2017-04-11 20:17:23 -060019}
20
21float2 fbSelect(bool2 cnd, float2 src0, float2 src1)
22{
23 return cnd ? src0 : src1;
John Kessenich34718202017-04-11 17:30:08 -060024}
25
John Kessenich00957f82016-07-27 10:39:57 -060026float4 PixelShaderFunction(float4 input) : COLOR0
27{
28 int a = 1 < 2 ? 3 < 4 ? 5 : 6 : 7;
29 int b = 1 < 2 ? 3 > 4 ? 5 : 6 : 7;
30 int c = 1 > 2 ? 3 > 4 ? 5 : 6 : 7;
31 int d = 1 > 2 ? 3 < 4 ? 5 : 6 : 7;
32 float4 ret = a * input +
33 b * input +
34 c * input +
35 d * input;
36 int e;
37 e = a = b ? c = d : 10, b = a ? d = c : 11;
38 float4 f;
39 f = ret.x < input.y ? c * input : d * input;
John Kessenich32a385e2017-04-20 21:32:16 -060040 return e * ret + f + vectorCond() + scalarCond() +
John Kessenichb5e739c2017-04-11 20:17:23 -060041 float4(fbSelect(bool2(true, false), float2(1.0, 2.0), float2(3.0, 4.0)), 10.0, 10.0);
John Kessenich00957f82016-07-27 10:39:57 -060042}