Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / hlsl.struct.split.trivial.vert
1
2 // Test trivial case for structure splitting: the IN and OUT structs have ONLY an interstage IO.
3 // This should fall back to flattening, and not produce any empty structures.
4
5 struct VS_INPUT
6 {
7     float4 Pos_in : SV_Position;
8 };
9
10 struct VS_OUTPUT
11 {
12     float4 Pos : SV_Position;
13 };
14
15 VS_OUTPUT main(VS_INPUT vsin, float4 Pos_loose : SV_Position)
16 {
17     VS_OUTPUT vsout;
18
19     vsout.Pos = vsin.Pos_in + Pos_loose;
20
21     return vsout;
22 }