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(out float2 _22) 17{ 18 _22 = sqrt(float4(-1.0f, -4.0f, -16.0f, -64.0f)).xy; 19 float4 _47 = float4(_7_testMatrix2x2[0].x, _7_testMatrix2x2[0].y, _7_testMatrix2x2[1].x, _7_testMatrix2x2[1].y) + float4(0.0f, 2.0f, 6.0f, 12.0f); 20 float4 inputVal = _47; 21 bool _68 = false; 22 if (abs(sqrt(_47.x) - 1.0f) < 0.0500000007450580596923828125f) 23 { 24 float2 _61 = abs(sqrt(_47.xy) - float2(1.0f, 2.0f)); 25 _68 = all(bool2(_61.x < 0.0500000007450580596923828125f.xx.x, _61.y < 0.0500000007450580596923828125f.xx.y)); 26 } 27 else 28 { 29 _68 = false; 30 } 31 bool _82 = false; 32 if (_68) 33 { 34 float3 _73 = abs(sqrt(_47.xyz) - float3(1.0f, 2.0f, 3.0f)); 35 _82 = all(bool3(_73.x < 0.0500000007450580596923828125f.xxx.x, _73.y < 0.0500000007450580596923828125f.xxx.y, _73.z < 0.0500000007450580596923828125f.xxx.z)); 36 } 37 else 38 { 39 _82 = false; 40 } 41 bool _94 = false; 42 if (_82) 43 { 44 float4 _87 = abs(sqrt(_47) - float4(1.0f, 2.0f, 3.0f, 4.0f)); 45 _94 = all(bool4(_87.x < 0.0500000007450580596923828125f.xxxx.x, _87.y < 0.0500000007450580596923828125f.xxxx.y, _87.z < 0.0500000007450580596923828125f.xxxx.z, _87.w < 0.0500000007450580596923828125f.xxxx.w)); 46 } 47 else 48 { 49 _94 = false; 50 } 51 float4 _95 = 0.0f.xxxx; 52 if (_94) 53 { 54 _95 = _7_colorGreen; 55 } 56 else 57 { 58 _95 = _7_colorRed; 59 } 60 return _95; 61} 62 63void frag_main() 64{ 65 float2 _18 = 0.0f.xx; 66 float4 _20 = main(_18); 67 sk_FragColor = _20; 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