1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 row_major float2x2 _10_testMatrix2x2 : packoffset(c0); 4 float4 _10_colorGreen : packoffset(c2); 5 float4 _10_colorRed : packoffset(c3); 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 _42 = float4(_10_testMatrix2x2[0].x, _10_testMatrix2x2[0].y, _10_testMatrix2x2[1].x, _10_testMatrix2x2[1].y) * float4(1.0f, 1.0f, -1.0f, -1.0f); 19 float4 inputVal = _42; 20 uint4 expectedB = uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u); 21 bool _65 = false; 22 if (_42.x == asfloat(1065353216u)) 23 { 24 float2 _58 = _42.xy; 25 float2 _59 = asfloat(uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u).xy); 26 _65 = all(bool2(_58.x == _59.x, _58.y == _59.y)); 27 } 28 else 29 { 30 _65 = false; 31 } 32 bool _76 = false; 33 if (_65) 34 { 35 float3 _68 = _42.xyz; 36 float3 _70 = asfloat(uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u).xyz); 37 _76 = all(bool3(_68.x == _70.x, _68.y == _70.y, _68.z == _70.z)); 38 } 39 else 40 { 41 _76 = false; 42 } 43 bool _83 = false; 44 if (_76) 45 { 46 float4 _79 = asfloat(uint4(1065353216u, 1073741824u, 3225419776u, 3229614080u)); 47 _83 = all(bool4(_42.x == _79.x, _42.y == _79.y, _42.z == _79.z, _42.w == _79.w)); 48 } 49 else 50 { 51 _83 = false; 52 } 53 float4 _84 = 0.0f.xxxx; 54 if (_83) 55 { 56 _84 = _10_colorGreen; 57 } 58 else 59 { 60 _84 = _10_colorRed; 61 } 62 return _84; 63} 64 65void frag_main() 66{ 67 float2 _21 = 0.0f.xx; 68 sk_FragColor = main(_21); 69} 70 71SPIRV_Cross_Output main() 72{ 73 frag_main(); 74 SPIRV_Cross_Output stage_output; 75 stage_output.sk_FragColor = sk_FragColor; 76 return stage_output; 77} 78