blob: 90f047feb7e6cba592946ff727415193b76b5fb7 [file] [log] [blame]
LoopDawge2cda3c2017-08-23 12:34:42 -06001struct S {
2 float4 pos : SV_Position;
3 float2 clip[2] : SV_ClipDistance0;
4};
5
6[maxvertexcount(3)]
7void main(triangle in float4 pos[3] : SV_Position,
8 triangle in uint VertexID[3] : VertexID,
9 inout LineStream<S> OutputStream,
LoopDawg5e5b12e2017-08-28 14:02:19 -060010 triangle in float2 clip[3][2] : SV_ClipDistance) // externally: an array 3 of array 4 of float.
LoopDawge2cda3c2017-08-23 12:34:42 -060011{
12 S s;
13
14 s.pos = pos[0];
15 s.clip[0] = clip[0][0];
16 s.clip[1] = clip[0][1];
17
18 OutputStream.Append(s);
19}