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 int4 expectedB = int4(1065353216, 1073741824, -1069547520, -1065353216); 21 bool _64 = false; 22 if (_42.x == asfloat(1065353216)) 23 { 24 float2 _57 = _42.xy; 25 float2 _58 = asfloat(int4(1065353216, 1073741824, -1069547520, -1065353216).xy); 26 _64 = all(bool2(_57.x == _58.x, _57.y == _58.y)); 27 } 28 else 29 { 30 _64 = false; 31 } 32 bool _75 = false; 33 if (_64) 34 { 35 float3 _67 = _42.xyz; 36 float3 _69 = asfloat(int4(1065353216, 1073741824, -1069547520, -1065353216).xyz); 37 _75 = all(bool3(_67.x == _69.x, _67.y == _69.y, _67.z == _69.z)); 38 } 39 else 40 { 41 _75 = false; 42 } 43 bool _82 = false; 44 if (_75) 45 { 46 float4 _78 = asfloat(int4(1065353216, 1073741824, -1069547520, -1065353216)); 47 _82 = all(bool4(_42.x == _78.x, _42.y == _78.y, _42.z == _78.z, _42.w == _78.w)); 48 } 49 else 50 { 51 _82 = false; 52 } 53 float4 _83 = 0.0f.xxxx; 54 if (_82) 55 { 56 _83 = _10_colorGreen; 57 } 58 else 59 { 60 _83 = _10_colorRed; 61 } 62 return _83; 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