1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 row_major float2x2 _7_testMatrix2x2 : packoffset(c0); 4 float4 _7_colorGreen : packoffset(c2); 5 float4 _7_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 _22) 17{ 18 float4 _39 = float4(_7_testMatrix2x2[0].x, _7_testMatrix2x2[0].y, _7_testMatrix2x2[1].x, _7_testMatrix2x2[1].y) * float4(1.0f, 1.0f, -1.0f, -1.0f); 19 float4 inputVal = _39; 20 bool _56 = false; 21 if (asint(_39.x) == 1065353216) 22 { 23 int2 _48 = asint(_39.xy); 24 _56 = all(bool2(_48.x == int2(1065353216, 1073741824).x, _48.y == int2(1065353216, 1073741824).y)); 25 } 26 else 27 { 28 _56 = false; 29 } 30 bool _68 = false; 31 if (_56) 32 { 33 int3 _59 = asint(_39.xyz); 34 _68 = all(bool3(_59.x == int3(1065353216, 1073741824, -1069547520).x, _59.y == int3(1065353216, 1073741824, -1069547520).y, _59.z == int3(1065353216, 1073741824, -1069547520).z)); 35 } 36 else 37 { 38 _68 = false; 39 } 40 bool _78 = false; 41 if (_68) 42 { 43 int4 _71 = asint(_39); 44 _78 = all(bool4(_71.x == int4(1065353216, 1073741824, -1069547520, -1065353216).x, _71.y == int4(1065353216, 1073741824, -1069547520, -1065353216).y, _71.z == int4(1065353216, 1073741824, -1069547520, -1065353216).z, _71.w == int4(1065353216, 1073741824, -1069547520, -1065353216).w)); 45 } 46 else 47 { 48 _78 = false; 49 } 50 float4 _79 = 0.0f.xxxx; 51 if (_78) 52 { 53 _79 = _7_colorGreen; 54 } 55 else 56 { 57 _79 = _7_colorRed; 58 } 59 return _79; 60} 61 62void frag_main() 63{ 64 float2 _18 = 0.0f.xx; 65 sk_FragColor = main(_18); 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