1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 row_major float4x4 _10_testMatrix4x4 : packoffset(c0); 4 float4 _10_colorGreen : packoffset(c4); 5 float4 _10_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 _25) 17{ 18 float4 inputA = _10_testMatrix4x4[0]; 19 float4 inputB = _10_testMatrix4x4[1]; 20 float4 expected = float4(5.0f, 17.0f, 38.0f, 70.0f); 21 bool _58 = false; 22 if ((_10_testMatrix4x4[0].x * _10_testMatrix4x4[1].x) == 5.0f) 23 { 24 _58 = dot(_10_testMatrix4x4[0].xy, _10_testMatrix4x4[1].xy) == 17.0f; 25 } 26 else 27 { 28 _58 = false; 29 } 30 bool _66 = false; 31 if (_58) 32 { 33 _66 = dot(_10_testMatrix4x4[0].xyz, _10_testMatrix4x4[1].xyz) == 38.0f; 34 } 35 else 36 { 37 _66 = false; 38 } 39 bool _71 = false; 40 if (_66) 41 { 42 _71 = dot(_10_testMatrix4x4[0], _10_testMatrix4x4[1]) == 70.0f; 43 } 44 else 45 { 46 _71 = false; 47 } 48 bool _75 = false; 49 if (_71) 50 { 51 _75 = true; 52 } 53 else 54 { 55 _75 = false; 56 } 57 bool _78 = false; 58 if (_75) 59 { 60 _78 = true; 61 } 62 else 63 { 64 _78 = false; 65 } 66 bool _81 = false; 67 if (_78) 68 { 69 _81 = true; 70 } 71 else 72 { 73 _81 = false; 74 } 75 bool _84 = false; 76 if (_81) 77 { 78 _84 = true; 79 } 80 else 81 { 82 _84 = false; 83 } 84 float4 _85 = 0.0f.xxxx; 85 if (_84) 86 { 87 _85 = _10_colorGreen; 88 } 89 else 90 { 91 _85 = _10_colorRed; 92 } 93 return _85; 94} 95 96void frag_main() 97{ 98 float2 _21 = 0.0f.xx; 99 sk_FragColor = main(_21); 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