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(out float2 _25) 17{ 18 _25 = sqrt(float4(-1.0f, -4.0f, -16.0f, -64.0f)).xy; 19 float4 _50 = float4(_10_testMatrix2x2[0].x, _10_testMatrix2x2[0].y, _10_testMatrix2x2[1].x, _10_testMatrix2x2[1].y) + float4(0.0f, 2.0f, 6.0f, 12.0f); 20 float4 inputVal = _50; 21 bool _70 = false; 22 if (abs(sqrt(_50.x) - 1.0f) < 0.0500000007450580596923828125f) 23 { 24 float2 _63 = abs(sqrt(_50.xy) - float2(1.0f, 2.0f)); 25 _70 = all(bool2(_63.x < 0.0500000007450580596923828125f.xx.x, _63.y < 0.0500000007450580596923828125f.xx.y)); 26 } 27 else 28 { 29 _70 = false; 30 } 31 bool _84 = false; 32 if (_70) 33 { 34 float3 _75 = abs(sqrt(_50.xyz) - float3(1.0f, 2.0f, 3.0f)); 35 _84 = all(bool3(_75.x < 0.0500000007450580596923828125f.xxx.x, _75.y < 0.0500000007450580596923828125f.xxx.y, _75.z < 0.0500000007450580596923828125f.xxx.z)); 36 } 37 else 38 { 39 _84 = false; 40 } 41 bool _96 = false; 42 if (_84) 43 { 44 float4 _89 = abs(sqrt(_50) - float4(1.0f, 2.0f, 3.0f, 4.0f)); 45 _96 = all(bool4(_89.x < 0.0500000007450580596923828125f.xxxx.x, _89.y < 0.0500000007450580596923828125f.xxxx.y, _89.z < 0.0500000007450580596923828125f.xxxx.z, _89.w < 0.0500000007450580596923828125f.xxxx.w)); 46 } 47 else 48 { 49 _96 = false; 50 } 51 float4 _97 = 0.0f.xxxx; 52 if (_96) 53 { 54 _97 = _10_colorGreen; 55 } 56 else 57 { 58 _97 = _10_colorRed; 59 } 60 return _97; 61} 62 63void frag_main() 64{ 65 float2 _21 = 0.0f.xx; 66 float4 _23 = main(_21); 67 sk_FragColor = _23; 68} 69 70SPIRV_Cross_Output main() 71{ 72 frag_main(); 73 SPIRV_Cross_Output stage_output; 74 stage_output.sk_FragColor = sk_FragColor; 75 return stage_output; 76} 77