blob: 8bcc5b994abf6c4f775379d3980dcfdf4b3f4af0 [file] [log] [blame]
steve-lunarg132d3312016-12-19 15:48:01 -07001
2struct STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO
3{
John Kessenichfda6edc2017-07-31 01:19:26 -06004 float m0_array[2] : mysemA;
5 int m1 : mysemB;
steve-lunarg132d3312016-12-19 15:48:01 -07006};
7
8struct PS_IN
9{
10 float4 pos : SV_Position;
11 float2 tc : TEXCOORD0;
12 // float c : SV_ClipDistance0;
13};
14
15struct GS_OUT
16{
17 PS_IN psIn;
18 STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO contains_no_builtin_io;
19};
20
21
22[maxvertexcount(3)]
23void 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 Kessenichfda6edc2017-07-31 01:19:26 -060029 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-lunarg132d3312016-12-19 15:48:01 -070032
33 ts.Append(o);
34}