You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
450 B
19 lines
450 B
4 months ago
|
struct GSPS_INPUT
|
||
|
{
|
||
|
};
|
||
|
|
||
|
// Test Append() method appearing before declaration of entry point's stream output.
|
||
|
|
||
|
void EmitVertex(in GSPS_INPUT output, inout TriangleStream<GSPS_INPUT> TriStream)
|
||
|
{
|
||
|
TriStream.Append( output );
|
||
|
}
|
||
|
|
||
|
[maxvertexcount(3)]
|
||
|
void main( triangle GSPS_INPUT input[3], inout TriangleStream<GSPS_INPUT> TriStream )
|
||
|
{
|
||
|
EmitVertex(input[0], TriStream);
|
||
|
EmitVertex(input[1], TriStream);
|
||
|
EmitVertex(input[2], TriStream);
|
||
|
}
|