• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2struct VertexData {
3    float4 position : POSITION;
4    float4 color    : COLOR0;
5    float2 uv       : TEXCOORD0;
6};
7
8struct PS_IN {
9    float4 position : SV_POSITION;
10    float4 color    : COLOR0;
11    float2 uv       : TEXCOORD0;
12};
13
14[maxvertexcount(4)]
15void main(line VertexData vin[2], inout TriangleStream<PS_IN> outStream)
16{
17    PS_IN vout;
18
19    vout.color = vin[1].color;
20    vout.uv = vin[1].uv;
21    vout.position = vin[1].position;
22    outStream.Append(vout);
23}
24