Merge pull request #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git] / Test / hlsl.fraggeom.frag
1 // test geometry shader in fragment shader.  GS attributes should be successfully ignored.
2
3 struct myVertex {
4     float4 pos : SV_Position;
5 };
6
7 [maxvertexcount(1)]
8 void GS_Draw(point myVertex IN, inout PointStream<myVertex> OutputStream)
9 {
10     OutputStream.Append(IN);
11     OutputStream.RestartStrip();
12 }
13
14 float4 main() : SV_TARGET
15 {
16     return 0;
17 }