1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _7_colorGreen : packoffset(c0); 4 float4 _7_colorRed : packoffset(c1); 5 float4 _7_testInputs : packoffset(c2); 6}; 7 8 9static float4 sk_FragColor; 10 11struct SPIRV_Cross_Output 12{ 13 float4 sk_FragColor : SV_Target0; 14}; 15 16uint spvPackUnorm2x16(float2 value) 17{ 18 uint2 Packed = uint2(round(saturate(value) * 65535.0)); 19 return Packed.x | (Packed.y << 16); 20} 21 22float2 spvUnpackUnorm2x16(uint value) 23{ 24 uint2 Packed = uint2(value & 0xffff, value >> 16); 25 return float2(Packed) / 65535.0; 26} 27 28float4 main(float2 _21) 29{ 30 uint _26 = spvPackUnorm2x16(_7_testInputs.xy); 31 uint xy = _26; 32 uint _34 = spvPackUnorm2x16(_7_testInputs.zw); 33 uint zw = _34; 34 float2 _42 = abs(spvUnpackUnorm2x16(_26)); 35 bool _57 = false; 36 if (all(bool2(_42.x < 0.015625f.xx.x, _42.y < 0.015625f.xx.y))) 37 { 38 float2 _51 = abs(spvUnpackUnorm2x16(_34) - float2(0.75f, 1.0f)); 39 _57 = all(bool2(_51.x < 0.015625f.xx.x, _51.y < 0.015625f.xx.y)); 40 } 41 else 42 { 43 _57 = false; 44 } 45 float4 _58 = 0.0f.xxxx; 46 if (_57) 47 { 48 _58 = _7_colorGreen; 49 } 50 else 51 { 52 _58 = _7_colorRed; 53 } 54 return _58; 55} 56 57void frag_main() 58{ 59 float2 _17 = 0.0f.xx; 60 sk_FragColor = main(_17); 61} 62 63SPIRV_Cross_Output main() 64{ 65 frag_main(); 66 SPIRV_Cross_Output stage_output; 67 stage_output.sk_FragColor = sk_FragColor; 68 return stage_output; 69} 70