Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / hlsl.structarray.flatten.geom
1
2 struct VertexData {
3     float4 position : POSITION;
4     float4 color    : COLOR0;
5     float2 uv       : TEXCOORD0;
6 };
7
8 struct PS_IN {
9     float4 position : SV_POSITION;
10     float4 color    : COLOR0;
11     float2 uv       : TEXCOORD0;
12 };
13
14 [maxvertexcount(4)]
15 void 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 }