1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _8_colorGreen : packoffset(c0); 4 float4 _8_colorRed : packoffset(c1); 5}; 6 7 8static float4 sk_FragColor; 9 10struct SPIRV_Cross_Output 11{ 12 float4 sk_FragColor : SV_Target0; 13}; 14 15int out_param_func2_ih(out float _24) 16{ 17 _24 = _8_colorRed.x; 18 return int(_8_colorRed.x); 19} 20 21float4 main(float2 _33) 22{ 23 float testArray[2] = { 0.0f, 0.0f }; 24 float _41 = 0.0f; 25 int _42 = out_param_func2_ih(_41); 26 testArray[0] = _41; 27 bool _57 = false; 28 if (testArray[0] == 1.0f) 29 { 30 _57 = testArray[1] == 1.0f; 31 } 32 else 33 { 34 _57 = false; 35 } 36 float4 _58 = 0.0f.xxxx; 37 if (_57) 38 { 39 _58 = _8_colorGreen; 40 } 41 else 42 { 43 _58 = _8_colorRed; 44 } 45 return _58; 46} 47 48void frag_main() 49{ 50 float2 _18 = 0.0f.xx; 51 sk_FragColor = main(_18); 52} 53 54SPIRV_Cross_Output main() 55{ 56 frag_main(); 57 SPIRV_Cross_Output stage_output; 58 stage_output.sk_FragColor = sk_FragColor; 59 return stage_output; 60} 61