1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 row_major float2x2 _7_testMatrix2x2 : packoffset(c0); 4 row_major float3x3 _7_testMatrix3x3 : packoffset(c2); 5 float4 _7_colorGreen : packoffset(c5); 6 float4 _7_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 _24) 18{ 19 float2x3 testMatrix2x3 = float2x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f)); 20 float2x2 _40 = transpose(_7_testMatrix2x2); 21 float2 _50 = _40[0]; 22 float2 _53 = _40[1]; 23 bool _76 = false; 24 if (all(bool2(_50.x == float2(1.0f, 3.0f).x, _50.y == float2(1.0f, 3.0f).y)) && all(bool2(_53.x == float2(2.0f, 4.0f).x, _53.y == float2(2.0f, 4.0f).y))) 25 { 26 float3x2 _59 = transpose(float2x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f))); 27 float2 _65 = _59[0]; 28 float2 _68 = _59[1]; 29 float2 _72 = _59[2]; 30 _76 = (all(bool2(_65.x == float2(1.0f, 4.0f).x, _65.y == float2(1.0f, 4.0f).y)) && all(bool2(_68.x == float2(2.0f, 5.0f).x, _68.y == float2(2.0f, 5.0f).y))) && all(bool2(_72.x == float2(3.0f, 6.0f).x, _72.y == float2(3.0f, 6.0f).y)); 31 } 32 else 33 { 34 _76 = false; 35 } 36 bool _103 = false; 37 if (_76) 38 { 39 float3x3 _79 = transpose(_7_testMatrix3x3); 40 float3 _92 = _79[0]; 41 float3 _95 = _79[1]; 42 float3 _99 = _79[2]; 43 _103 = (all(bool3(_92.x == float3(1.0f, 4.0f, 7.0f).x, _92.y == float3(1.0f, 4.0f, 7.0f).y, _92.z == float3(1.0f, 4.0f, 7.0f).z)) && all(bool3(_95.x == float3(2.0f, 5.0f, 8.0f).x, _95.y == float3(2.0f, 5.0f, 8.0f).y, _95.z == float3(2.0f, 5.0f, 8.0f).z))) && all(bool3(_99.x == float3(3.0f, 6.0f, 9.0f).x, _99.y == float3(3.0f, 6.0f, 9.0f).y, _99.z == float3(3.0f, 6.0f, 9.0f).z)); 44 } 45 else 46 { 47 _103 = false; 48 } 49 float4 _104 = 0.0f.xxxx; 50 if (_103) 51 { 52 _104 = _7_colorGreen; 53 } 54 else 55 { 56 _104 = _7_colorRed; 57 } 58 return _104; 59} 60 61void frag_main() 62{ 63 float2 _20 = 0.0f.xx; 64 sk_FragColor = main(_20); 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