1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _7_testInputs : packoffset(c0); 4 float4 _7_colorBlack : packoffset(c1); 5 float4 _7_colorGreen : packoffset(c2); 6 float4 _7_colorRed : packoffset(c3); 7}; 8 9 10static float4 sk_FragColor; 11 12struct SPIRV_Cross_Output 13{ 14 float4 sk_FragColor : SV_Target0; 15}; 16 17float4 main(float2 _21) 18{ 19 float4 _RESERVED_IDENTIFIER_FIXUP_0_v = _7_testInputs; 20 int4 _44 = int4(int(_7_colorBlack.x), int(_7_colorBlack.y), int(_7_colorBlack.z), int(_7_colorBlack.w)); 21 int4 _RESERVED_IDENTIFIER_FIXUP_1_i = _44; 22 float _48 = _7_testInputs[_44.x]; 23 float _RESERVED_IDENTIFIER_FIXUP_2_x = _48; 24 float _51 = _7_testInputs[_44.y]; 25 float _RESERVED_IDENTIFIER_FIXUP_3_y = _51; 26 float _54 = _7_testInputs[_44.z]; 27 float _RESERVED_IDENTIFIER_FIXUP_4_z = _54; 28 float _57 = _7_testInputs[_44.w]; 29 float _RESERVED_IDENTIFIER_FIXUP_5_w = _57; 30 float4 _58 = float4(_48, _51, _54, _57); 31 float4 _65 = 0.0f.xxxx; 32 if (all(bool4(_58.x == float4(-1.25f, -1.25f, -1.25f, 0.0f).x, _58.y == float4(-1.25f, -1.25f, -1.25f, 0.0f).y, _58.z == float4(-1.25f, -1.25f, -1.25f, 0.0f).z, _58.w == float4(-1.25f, -1.25f, -1.25f, 0.0f).w))) 33 { 34 _65 = _7_colorGreen; 35 } 36 else 37 { 38 _65 = _7_colorRed; 39 } 40 return _65; 41} 42 43void frag_main() 44{ 45 float2 _17 = 0.0f.xx; 46 sk_FragColor = main(_17); 47} 48 49SPIRV_Cross_Output main() 50{ 51 frag_main(); 52 SPIRV_Cross_Output stage_output; 53 stage_output.sk_FragColor = sk_FragColor; 54 return stage_output; 55} 56