xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.targetStruct2.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1struct PSInput {
2  float interp;
3  uint no_interp;
4};
5
6struct PSOutput {
7    float4 o1 : SV_TARGET1;
8    float4 o2 : SV_TARGET0;
9};
10
11PSOutput main(PSInput input : INPUT, out float4 po : SV_TARGET0) : SV_TARGET2
12{
13    PSOutput pso;
14    pso.o1 = float4(float(input.no_interp), input.interp, 0, 1);
15    pso.o2 = 1;
16    po = 0;
17
18    return pso;
19}