Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / hlsl.struct.split.array.geom
1 struct PSInput
2 {
3     float4 Pos      : SV_POSITION;
4     float2 TexCoord : TEXCOORD;
5     float3 TerrainPos : TERRAINPOS;
6     uint VertexID : VertexID;
7 };
8
9 typedef PSInput foo_t[2][3];
10
11 [maxvertexcount(4)]
12 void main(point uint v[1] : VertexID, inout TriangleStream<PSInput> OutputStream)
13 {
14     foo_t Verts;
15
16     PSInput Out = (PSInput) 0;
17
18     for (int x=0; x<2; ++x)
19         for (int y=0; y<2; ++y)
20             Verts[x][y] = Out;
21 }