1static float4 RT0; 2static float4 RT1; 3static float4 RT2; 4static float4 RT3; 5 6struct SPIRV_Cross_Output 7{ 8 float4 RT0 : SV_Target0; 9 float4 RT1 : SV_Target1; 10 float4 RT2 : SV_Target2; 11 float4 RT3 : SV_Target3; 12}; 13 14void frag_main() 15{ 16 RT0 = 1.0f.xxxx; 17 RT1 = 2.0f.xxxx; 18 RT2 = 3.0f.xxxx; 19 RT3 = 4.0f.xxxx; 20} 21 22SPIRV_Cross_Output main() 23{ 24 frag_main(); 25 SPIRV_Cross_Output stage_output; 26 stage_output.RT0 = RT0; 27 stage_output.RT1 = RT1; 28 stage_output.RT2 = RT2; 29 stage_output.RT3 = RT3; 30 return stage_output; 31} 32