2017-03-09 21:37:32 +00:00
|
|
|
struct S {
|
2017-08-04 19:41:32 +00:00
|
|
|
float clip0 : SV_Position;
|
2017-03-09 21:37:32 +00:00
|
|
|
float clip0 : SV_ClipDistance0;
|
|
|
|
float cull0 : SV_CullDistance0;
|
|
|
|
uint vpai : SV_ViewportArrayIndex;
|
|
|
|
uint rtai : SV_RenderTargetArrayIndex;
|
|
|
|
int ii : SV_InstanceID;
|
|
|
|
};
|
|
|
|
|
|
|
|
[maxvertexcount(4)]
|
2017-08-04 19:41:32 +00:00
|
|
|
void main(triangle in uint VertexID[3] : VertexID,
|
2017-03-09 21:37:32 +00:00
|
|
|
inout LineStream<S> OutputStream)
|
|
|
|
{
|
|
|
|
S s;
|
2017-08-04 19:41:32 +00:00
|
|
|
OutputStream.Append(s);
|
2017-03-09 21:37:32 +00:00
|
|
|
}
|
2020-01-17 07:11:12 +00:00
|
|
|
|
|
|
|
[maxvertexcount(4)]
|
|
|
|
void notmain(line in uint VertexID[2] : VertexID,
|
|
|
|
inout LineStream<S> OutputStream)
|
|
|
|
{
|
|
|
|
S s;
|
|
|
|
OutputStream.Append(s);
|
|
|
|
}
|