Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.structin.vert
1 struct VI {
2     float4 m[2] : mysemA;
3     float4 coord : SV_POSITION;
4     linear float4 b : mysemB;
5 };
6
7 VI main(float4 d : mysem, VI vi, float4 e : mysem)
8 {
9     VI local;
10
11     local.b = vi.m[1] + vi.m[0] + (float4)vi.coord.x + d + e;
12     local.coord = (float4)1;
13     local.m[0] = (float4)2;
14     local.m[1] = (float4)3;
15
16     return local;
17 }