third_party/spirv-cross/reference/opt/shaders-hlsl/frag/dual-source-blending.frag
raw| 1 | static float4 FragColor0; |
| 2 | static float4 FragColor1; |
| 3 | |
| 4 | struct SPIRV_Cross_Output |
| 5 | { |
| 6 | float4 FragColor0 : SV_Target0; |
| 7 | float4 FragColor1 : SV_Target1; |
| 8 | }; |
| 9 | |
| 10 | void frag_main() |
| 11 | { |
| 12 | FragColor0 = 1.0f.xxxx; |
| 13 | FragColor1 = 2.0f.xxxx; |
| 14 | } |
| 15 | |
| 16 | SPIRV_Cross_Output main() |
| 17 | { |
| 18 | frag_main(); |
| 19 | SPIRV_Cross_Output stage_output; |
| 20 | stage_output.FragColor0 = FragColor0; |
| 21 | stage_output.FragColor1 = FragColor1; |
| 22 | return stage_output; |
| 23 | } |