Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.clipdistance-7.vert
1 struct VS_OUTPUT        {
2     float4 Position             : SV_Position;
3     float3 clip0                : SV_ClipDistance0;  // multiple semantic IDs, vec3+vec4 (skip)
4     float4 clip1                : SV_ClipDistance1;  // ...
5 };
6
7 VS_OUTPUT main()
8 {
9     VS_OUTPUT           Output;
10     Output.Position     = 0;
11
12     Output.clip0.x = 0;
13     Output.clip0.y = 1;
14     Output.clip0.z = 2;
15     // Position 3 is skipped
16
17     Output.clip1.x = 4;
18     Output.clip1.y = 5;
19     Output.clip1.z = 6;
20     Output.clip1.w = 7;
21
22     return Output;
23 }