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 bool _58 = false; 21 if (asint(_42.x) == 1065353216) 22 { 23 int2 _50 = asint(_42.xy); 24 _58 = all(bool2(_50.x == int2(1065353216, 1073741824).x, _50.y == int2(1065353216, 1073741824).y)); 25 } 26 else 27 { 28 _58 = false; 29 } 30 bool _70 = false; 31 if (_58) 32 { 33 int3 _61 = asint(_42.xyz); 34 _70 = all(bool3(_61.x == int3(1065353216, 1073741824, -1069547520).x, _61.y == int3(1065353216, 1073741824, -1069547520).y, _61.z == int3(1065353216, 1073741824, -1069547520).z)); 35 } 36 else 37 { 38 _70 = false; 39 } 40 bool _80 = false; 41 if (_70) 42 { 43 int4 _73 = asint(_42); 44 _80 = all(bool4(_73.x == int4(1065353216, 1073741824, -1069547520, -1065353216).x, _73.y == int4(1065353216, 1073741824, -1069547520, -1065353216).y, _73.z == int4(1065353216, 1073741824, -1069547520, -1065353216).z, _73.w == int4(1065353216, 1073741824, -1069547520, -1065353216).w)); 45 } 46 else 47 { 48 _80 = false; 49 } 50 float4 _81 = 0.0f.xxxx; 51 if (_80) 52 { 53 _81 = _10_colorGreen; 54 } 55 else 56 { 57 _81 = _10_colorRed; 58 } 59 return _81; 60} 61 62void frag_main() 63{ 64 float2 _21 = 0.0f.xx; 65 sk_FragColor = main(_21); 66} 67 68SPIRV_Cross_Output main() 69{ 70 frag_main(); 71 SPIRV_Cross_Output stage_output; 72 stage_output.sk_FragColor = sk_FragColor; 73 return stage_output; 74} 75