third_party/spirv-cross/reference/opt/shaders-hlsl/asm/frag/storage-class-output-initializer.asm.frag
raw| 1 | static const float4 _20[2] = { float4(1.0f, 2.0f, 3.0f, 4.0f), 10.0f.xxxx }; |
| 2 | |
| 3 | static float4 FragColors[2] = _20; |
| 4 | static float4 FragColor = 5.0f.xxxx; |
| 5 | |
| 6 | struct SPIRV_Cross_Output |
| 7 | { |
| 8 | float4 FragColors[2] : SV_Target0; |
| 9 | float4 FragColor : SV_Target2; |
| 10 | }; |
| 11 | |
| 12 | void frag_main() |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | SPIRV_Cross_Output main() |
| 17 | { |
| 18 | frag_main(); |
| 19 | SPIRV_Cross_Output stage_output; |
| 20 | stage_output.FragColors = FragColors; |
| 21 | stage_output.FragColor = FragColor; |
| 22 | return stage_output; |
| 23 | } |