• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2struct STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO
3{
4    float m0_array[2] : mysemA;
5    int   m1 : mysemB;
6};
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);
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;
32
33    ts.Append(o);
34}
35