1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 row_major float2x2 _10_testMatrix2x2 : packoffset(c0); 4 row_major float3x3 _10_testMatrix3x3 : packoffset(c2); 5 float4 _10_colorGreen : packoffset(c5); 6 float4 _10_colorRed : packoffset(c6); 7}; 8 9 10static float4 sk_FragColor; 11 12struct SPIRV_Cross_Output 13{ 14 float4 sk_FragColor : SV_Target0; 15}; 16 17float4 main(float2 _27) 18{ 19 float2x3 testMatrix2x3 = float2x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f)); 20 float2x2 _42 = transpose(_10_testMatrix2x2); 21 float2 _52 = _42[0]; 22 float2 _55 = _42[1]; 23 bool _78 = false; 24 if (all(bool2(_52.x == float2(1.0f, 3.0f).x, _52.y == float2(1.0f, 3.0f).y)) && all(bool2(_55.x == float2(2.0f, 4.0f).x, _55.y == float2(2.0f, 4.0f).y))) 25 { 26 float3x2 _61 = transpose(float2x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f))); 27 float2 _67 = _61[0]; 28 float2 _70 = _61[1]; 29 float2 _74 = _61[2]; 30 _78 = (all(bool2(_67.x == float2(1.0f, 4.0f).x, _67.y == float2(1.0f, 4.0f).y)) && all(bool2(_70.x == float2(2.0f, 5.0f).x, _70.y == float2(2.0f, 5.0f).y))) && all(bool2(_74.x == float2(3.0f, 6.0f).x, _74.y == float2(3.0f, 6.0f).y)); 31 } 32 else 33 { 34 _78 = false; 35 } 36 bool _105 = false; 37 if (_78) 38 { 39 float3x3 _81 = transpose(_10_testMatrix3x3); 40 float3 _94 = _81[0]; 41 float3 _97 = _81[1]; 42 float3 _101 = _81[2]; 43 _105 = (all(bool3(_94.x == float3(1.0f, 4.0f, 7.0f).x, _94.y == float3(1.0f, 4.0f, 7.0f).y, _94.z == float3(1.0f, 4.0f, 7.0f).z)) && all(bool3(_97.x == float3(2.0f, 5.0f, 8.0f).x, _97.y == float3(2.0f, 5.0f, 8.0f).y, _97.z == float3(2.0f, 5.0f, 8.0f).z))) && all(bool3(_101.x == float3(3.0f, 6.0f, 9.0f).x, _101.y == float3(3.0f, 6.0f, 9.0f).y, _101.z == float3(3.0f, 6.0f, 9.0f).z)); 44 } 45 else 46 { 47 _105 = false; 48 } 49 float4 _106 = 0.0f.xxxx; 50 if (_105) 51 { 52 _106 = _10_colorGreen; 53 } 54 else 55 { 56 _106 = _10_colorRed; 57 } 58 return _106; 59} 60 61void frag_main() 62{ 63 float2 _23 = 0.0f.xx; 64 sk_FragColor = main(_23); 65} 66 67SPIRV_Cross_Output main() 68{ 69 frag_main(); 70 SPIRV_Cross_Output stage_output; 71 stage_output.sk_FragColor = sk_FragColor; 72 return stage_output; 73} 74