Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / hlsl.structIoFourWay.frag
1 struct T {\r
2     float f : packoffset(c4.y);    // artificial, but validates all different treatments: uniform offset\r
3     centroid float g;              // interpolant input\r
4     float d: SV_DepthGreaterEqual; // fragment output\r
5     float4 normal;                 // non-IO\r
6 };\r
7 \r
8 T s;  // loose uniform\r
9 \r
10 cbuffer buff {\r
11     T t : packoffset(c5.z);\r
12 };\r
13 \r
14 T main(T t : myInput) : SV_Target0\r
15 {\r
16     T local;\r
17     return local;\r
18 }\r