steve-lunarg | 132d331 | 2016-12-19 15:48:01 -0700 | [diff] [blame] | 1 | |
| 2 | struct STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO |
| 3 | { |
John Kessenich | fda6edc | 2017-07-31 01:19:26 -0600 | [diff] [blame] | 4 | float m0_array[2] : mysemA; |
| 5 | int m1 : mysemB; |
steve-lunarg | 132d331 | 2016-12-19 15:48:01 -0700 | [diff] [blame] | 6 | }; |
| 7 | |
| 8 | struct PS_IN |
| 9 | { |
| 10 | float4 pos : SV_Position; |
| 11 | float2 tc : TEXCOORD0; |
| 12 | // float c : SV_ClipDistance0; |
| 13 | }; |
| 14 | |
| 15 | struct GS_OUT |
| 16 | { |
| 17 | PS_IN psIn; |
| 18 | STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO contains_no_builtin_io; |
| 19 | }; |
| 20 | |
| 21 | |
| 22 | [maxvertexcount(3)] |
| 23 | void main(triangle PS_IN tin[3], inout TriangleStream <GS_OUT> ts ) |
| 24 | { |
| 25 | GS_OUT o; |
| 26 | |
| 27 | o.psIn.pos = float4(1,2,3,4); |
| 28 | o.psIn.tc = float2(5,6); |
John Kessenich | fda6edc | 2017-07-31 01:19:26 -0600 | [diff] [blame] | 29 | o.contains_no_builtin_io.m0_array[0] = 2.3; |
| 30 | o.contains_no_builtin_io.m0_array[1] = 2.3; |
| 31 | o.contains_no_builtin_io.m1 = 2; |
steve-lunarg | 132d331 | 2016-12-19 15:48:01 -0700 | [diff] [blame] | 32 | |
| 33 | ts.Append(o); |
| 34 | } |