• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2struct PS_IN
3{
4    float4 pos : SV_Position;
5};
6
7struct GS_OUT
8{
9    float4 pos : SV_Position;
10};
11
12[maxvertexcount(3)]
13void main(triangle PS_IN i[3], inout TriangleStream <GS_OUT> ts)
14{
15    GS_OUT o;
16
17    for (int x=0; x<3; ++x) {
18        o.pos = i[x].pos;
19        ts.Append(o);
20    }
21}
22