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.
22 lines
295 B
22 lines
295 B
4 months ago
|
|
||
|
struct PS_IN
|
||
|
{
|
||
|
float4 pos : SV_Position;
|
||
|
};
|
||
|
|
||
|
struct GS_OUT
|
||
|
{
|
||
|
float4 pos : SV_Position;
|
||
|
};
|
||
|
|
||
|
[maxvertexcount(3)]
|
||
|
void main(triangle PS_IN i[3], inout TriangleStream <GS_OUT> ts)
|
||
|
{
|
||
|
GS_OUT o;
|
||
|
|
||
|
for (int x=0; x<3; ++x) {
|
||
|
o.pos = i[x].pos;
|
||
|
ts.Append(o);
|
||
|
}
|
||
|
}
|