2017-08-23 21:34:42 +03:00
|
|
|
struct S {
|
|
|
|
float4 pos : SV_Position;
|
|
|
|
float2 clip[2] : SV_ClipDistance0;
|
|
|
|
};
|
|
|
|
|
|
|
|
[maxvertexcount(3)]
|
|
|
|
void main(triangle in float4 pos[3] : SV_Position,
|
|
|
|
triangle in uint VertexID[3] : VertexID,
|
|
|
|
inout LineStream<S> OutputStream,
|
2017-08-28 23:02:19 +03:00
|
|
|
triangle in float2 clip[3][2] : SV_ClipDistance) // externally: an array 3 of array 4 of float.
|
2017-08-23 21:34:42 +03:00
|
|
|
{
|
|
|
|
S s;
|
|
|
|
|
|
|
|
s.pos = pos[0];
|
|
|
|
s.clip[0] = clip[0][0];
|
|
|
|
s.clip[1] = clip[0][1];
|
|
|
|
|
|
|
|
OutputStream.Append(s);
|
|
|
|
}
|