John Kessenich | 19b92ff | 2016-06-19 11:50:34 -0600 | [diff] [blame] | 1 | float4 a[4]; |
| 2 | |
| 3 | struct { |
| 4 | float4 m[7]; |
| 5 | } s[11]; |
| 6 | |
John Kessenich | c64a9dd | 2017-09-15 13:15:23 -0600 | [diff] [blame] | 7 | static float4 C = float4(1,2,3,4); |
xavier | ae8af5d | 2017-08-20 10:44:21 +0200 | [diff] [blame] | 8 | float4 a1[1] = { float4(1,2,3,4) }; |
| 9 | float4 a2[2] = { float4(1,2,3,4), float4(5,2,3,4), }; |
| 10 | const float4 c1[1] = { float4(1,2,3,4) }; |
| 11 | static const float4 c2[2] = { C, float4(1,2,3,4), }; |
John Kessenich | c64a9dd | 2017-09-15 13:15:23 -0600 | [diff] [blame] | 12 | |
| 13 | float4 PixelShaderFunction(int i : sem1, float4 input[3] : sem2) : SV_TARGET0 |
John Kessenich | 19b92ff | 2016-06-19 11:50:34 -0600 | [diff] [blame] | 14 | { |
John Kessenich | c64a9dd | 2017-09-15 13:15:23 -0600 | [diff] [blame] | 15 | float4 b[10] = { C, C, C, C, C, C, C, C, C, C }; |
xavier | ae8af5d | 2017-08-20 10:44:21 +0200 | [diff] [blame] | 16 | float4 tmp = C + a1[0] + c1[0] + a2[i] + c2[i]; |
| 17 | return a[1] + a[i] + input[2] + input[i] + b[5] + b[i] + s[i].m[i] + tmp; |
John Kessenich | c64a9dd | 2017-09-15 13:15:23 -0600 | [diff] [blame] | 18 | } |