| cbuffer _UniformBuffer : register(b0, space0) |
| { |
| float4 _10_colorGreen : packoffset(c0); |
| float4 _10_colorRed : packoffset(c1); |
| }; |
| |
| |
| static float4 sk_FragColor; |
| |
| struct SPIRV_Cross_Output |
| { |
| float4 sk_FragColor : SV_Target0; |
| }; |
| |
| float4 main(float2 _24) |
| { |
| float result = 0.0f; |
| for (int x = 0; x <= 1; x++) |
| { |
| result = 2.0f; |
| } |
| float4 _45 = 0.0f.xxxx; |
| if (result == 2.0f) |
| { |
| _45 = _10_colorGreen; |
| } |
| else |
| { |
| _45 = _10_colorRed; |
| } |
| return _45; |
| } |
| |
| void frag_main() |
| { |
| float2 _20 = 0.0f.xx; |
| sk_FragColor = main(_20); |
| } |
| |
| SPIRV_Cross_Output main() |
| { |
| frag_main(); |
| SPIRV_Cross_Output stage_output; |
| stage_output.sk_FragColor = sk_FragColor; |
| return stage_output; |
| } |