xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.structIoFourWay.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1struct T {
2    float f : packoffset(c4.y);    // artificial, but validates all different treatments: uniform offset
3    centroid float g;              // interpolant input
4    float d: SV_DepthGreaterEqual; // fragment output
5    float4 normal;                 // non-IO
6};
7
8T s;  // loose uniform
9
10cbuffer buff {
11    T t : packoffset(c5.z);
12};
13
14T main(T t : myInput) : SV_Target0
15{
16    T local;
17    return local;
18}
19