1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 row_major float4x4 _7_testMatrix4x4 : packoffset(c0); 4 float4 _7_colorGreen : packoffset(c4); 5 float4 _7_colorRed : packoffset(c5); 6}; 7 8 9static float4 sk_FragColor; 10 11struct SPIRV_Cross_Output 12{ 13 float4 sk_FragColor : SV_Target0; 14}; 15 16float4 main(float2 _22) 17{ 18 float4 inputA = _7_testMatrix4x4[0]; 19 float4 inputB = _7_testMatrix4x4[1]; 20 float4 expected = float4(5.0f, 17.0f, 38.0f, 70.0f); 21 bool _56 = false; 22 if ((_7_testMatrix4x4[0].x * _7_testMatrix4x4[1].x) == 5.0f) 23 { 24 _56 = dot(_7_testMatrix4x4[0].xy, _7_testMatrix4x4[1].xy) == 17.0f; 25 } 26 else 27 { 28 _56 = false; 29 } 30 bool _64 = false; 31 if (_56) 32 { 33 _64 = dot(_7_testMatrix4x4[0].xyz, _7_testMatrix4x4[1].xyz) == 38.0f; 34 } 35 else 36 { 37 _64 = false; 38 } 39 bool _69 = false; 40 if (_64) 41 { 42 _69 = dot(_7_testMatrix4x4[0], _7_testMatrix4x4[1]) == 70.0f; 43 } 44 else 45 { 46 _69 = false; 47 } 48 bool _73 = false; 49 if (_69) 50 { 51 _73 = true; 52 } 53 else 54 { 55 _73 = false; 56 } 57 bool _76 = false; 58 if (_73) 59 { 60 _76 = true; 61 } 62 else 63 { 64 _76 = false; 65 } 66 bool _79 = false; 67 if (_76) 68 { 69 _79 = true; 70 } 71 else 72 { 73 _79 = false; 74 } 75 bool _82 = false; 76 if (_79) 77 { 78 _82 = true; 79 } 80 else 81 { 82 _82 = false; 83 } 84 float4 _83 = 0.0f.xxxx; 85 if (_82) 86 { 87 _83 = _7_colorGreen; 88 } 89 else 90 { 91 _83 = _7_colorRed; 92 } 93 return _83; 94} 95 96void frag_main() 97{ 98 float2 _18 = 0.0f.xx; 99 sk_FragColor = main(_18); 100} 101 102SPIRV_Cross_Output main() 103{ 104 frag_main(); 105 SPIRV_Cross_Output stage_output; 106 stage_output.sk_FragColor = sk_FragColor; 107 return stage_output; 108} 109