xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.struct.split.trivial.geom (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1
2struct PS_IN
3{
4    float4 pos : SV_Position;
5};
6
7struct GS_OUT
8{
9    float4 pos : SV_Position;
10};
11
12[maxvertexcount(3)]
13void main(triangle PS_IN i[3], inout TriangleStream <GS_OUT> ts)
14{
15    GS_OUT o;
16
17    for (int x=0; x<3; ++x) {
18        o.pos = i[x].pos;
19        ts.Append(o);
20    }
21}
22