John Kessenich | cd0a78a | 2016-09-09 16:32:09 -0600 | [diff] [blame] | 1 | struct VI { |
John Kessenich | fda6edc | 2017-07-31 01:19:26 -0600 | [diff] [blame] | 2 | float4 m[2] : mysemA; |
| 3 | float4 coord : SV_POSITION; |
| 4 | linear float4 b : mysemB; |
John Kessenich | cd0a78a | 2016-09-09 16:32:09 -0600 | [diff] [blame] | 5 | }; |
| 6 | |
John Kessenich | fda6edc | 2017-07-31 01:19:26 -0600 | [diff] [blame] | 7 | VI main(float4 d : mysem, VI vi, float4 e : mysem) |
John Kessenich | cd0a78a | 2016-09-09 16:32:09 -0600 | [diff] [blame] | 8 | { |
John Kessenich | 34e7ee7 | 2016-09-16 17:10:39 -0600 | [diff] [blame] | 9 | VI local; |
| 10 | |
John Kessenich | fda6edc | 2017-07-31 01:19:26 -0600 | [diff] [blame] | 11 | local.b = vi.m[1] + vi.m[0] + (float4)vi.coord.x + d + e; |
| 12 | local.coord = (float4)1; |
| 13 | local.m[0] = (float4)2; |
| 14 | local.m[1] = (float4)3; |
John Kessenich | 34e7ee7 | 2016-09-16 17:10:39 -0600 | [diff] [blame] | 15 | |
| 16 | return local; |
steve-lunarg | a2b01a0 | 2016-11-28 17:09:54 -0700 | [diff] [blame] | 17 | } |