| OpCapability Shader |
| %1 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %gl_FragCoord %_GLF_color |
| OpExecutionMode %main OriginUpperLeft |
| OpSource ESSL 320 |
| OpName %main "main" |
| OpName %func_f1_ "func(f1;" |
| OpName %x "x" |
| OpName %gl_FragCoord "gl_FragCoord" |
| OpName %buf1 "buf1" |
| OpMemberName %buf1 0 "_GLF_uniform_float_values" |
| OpName %_ "" |
| OpName %param "param" |
| OpName %_GLF_color "_GLF_color" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "_GLF_uniform_int_values" |
| OpName %__0 "" |
| OpDecorate %gl_FragCoord BuiltIn FragCoord |
| OpDecorate %_arr_float_uint_4 ArrayStride 16 |
| OpMemberDecorate %buf1 0 Offset 0 |
| OpDecorate %buf1 Block |
| OpDecorate %_ DescriptorSet 0 |
| OpDecorate %_ Binding 1 |
| OpDecorate %_GLF_color Location 0 |
| OpDecorate %_arr_int_uint_2 ArrayStride 16 |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %buf0 Block |
| OpDecorate %__0 DescriptorSet 0 |
| OpDecorate %__0 Binding 0 |
| %void = OpTypeVoid |
| %15 = OpTypeFunction %void |
| %float = OpTypeFloat 32 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %18 = OpTypeFunction %float %_ptr_Function_float |
| %bool = OpTypeBool |
| %true = OpConstantTrue %bool |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Input_v4float = OpTypePointer Input %v4float |
| %gl_FragCoord = OpVariable %_ptr_Input_v4float Input |
| %uint = OpTypeInt 32 0 |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Input_float = OpTypePointer Input %float |
| %uint_4 = OpConstant %uint 4 |
| %_arr_float_uint_4 = OpTypeArray %float %uint_4 |
| %buf1 = OpTypeStruct %_arr_float_uint_4 |
| %_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1 |
| %_ = OpVariable %_ptr_Uniform_buf1 Uniform |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %int_2 = OpConstant %int 2 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %uint_0 = OpConstant %uint 0 |
| %int_3 = OpConstant %int 3 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| %uint_2 = OpConstant %uint 2 |
| %_arr_int_uint_2 = OpTypeArray %int %uint_2 |
| %buf0 = OpTypeStruct %_arr_int_uint_2 |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %__0 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %main = OpFunction %void None %15 |
| %39 = OpLabel |
| %param = OpVariable %_ptr_Function_float Function |
| %40 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 |
| %41 = OpLoad %float %40 |
| OpStore %param %41 |
| %42 = OpFunctionCall %float %func_f1_ %param |
| %43 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1 |
| %44 = OpLoad %float %43 |
| %45 = OpFOrdEqual %bool %42 %44 |
| OpSelectionMerge %46 None |
| OpBranchConditional %45 %47 %48 |
| %47 = OpLabel |
| %49 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0 |
| %50 = OpLoad %int %49 |
| %51 = OpConvertSToF %float %50 |
| %52 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1 |
| %53 = OpLoad %int %52 |
| %54 = OpConvertSToF %float %53 |
| %55 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1 |
| %56 = OpLoad %int %55 |
| %57 = OpConvertSToF %float %56 |
| %58 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0 |
| %59 = OpLoad %int %58 |
| %60 = OpConvertSToF %float %59 |
| %61 = OpCompositeConstruct %v4float %51 %54 %57 %60 |
| OpStore %_GLF_color %61 |
| OpBranch %46 |
| %48 = OpLabel |
| %62 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1 |
| %63 = OpLoad %int %62 |
| %64 = OpConvertSToF %float %63 |
| %65 = OpCompositeConstruct %v4float %64 %64 %64 %64 |
| OpStore %_GLF_color %65 |
| OpBranch %46 |
| %46 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %func_f1_ = OpFunction %float None %18 |
| %x = OpFunctionParameter %_ptr_Function_float |
| %66 = OpLabel |
| OpBranch %67 |
| %67 = OpLabel |
| OpLoopMerge %68 %69 None |
| OpBranch %70 |
| %70 = OpLabel |
| OpBranchConditional %true %71 %68 |
| %71 = OpLabel |
| OpBranch %72 |
| %72 = OpLabel |
| OpLoopMerge %73 %74 None |
| OpBranch %75 |
| %75 = OpLabel |
| %76 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1 |
| %77 = OpLoad %float %76 |
| %78 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_2 |
| %79 = OpLoad %float %78 |
| %80 = OpFOrdLessThan %bool %77 %79 |
| OpSelectionMerge %81 None |
| OpBranchConditional %80 %82 %81 |
| %82 = OpLabel |
| OpBranch %83 |
| %83 = OpLabel |
| OpLoopMerge %84 %85 None |
| OpBranch %86 |
| %86 = OpLabel |
| OpBranch %85 |
| %85 = OpLabel |
| %87 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 |
| %88 = OpLoad %float %87 |
| %89 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_2 |
| %90 = OpLoad %float %89 |
| %91 = OpFOrdLessThan %bool %88 %90 |
| OpBranchConditional %91 %83 %84 |
| %84 = OpLabel |
| OpBranch %81 |
| %81 = OpLabel |
| %92 = OpLoad %float %x |
| %93 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_3 |
| %94 = OpLoad %float %93 |
| %95 = OpFOrdLessThan %bool %92 %94 |
| OpSelectionMerge %96 None |
| OpBranchConditional %95 %97 %96 |
| %97 = OpLabel |
| %98 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1 |
| %99 = OpLoad %float %98 |
| OpReturnValue %99 |
| %96 = OpLabel |
| OpBranch %74 |
| %74 = OpLabel |
| %100 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1 |
| %101 = OpLoad %float %100 |
| %102 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_2 |
| %103 = OpLoad %float %102 |
| %104 = OpFOrdLessThan %bool %101 %103 |
| OpBranchConditional %104 %72 %73 |
| %73 = OpLabel |
| OpBranch %69 |
| %69 = OpLabel |
| OpBranch %67 |
| %68 = OpLabel |
| %105 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0 |
| %106 = OpLoad %float %105 |
| OpReturnValue %106 |
| OpFunctionEnd |