1*c8dee2aaSAndroid Build Coastguard Worker OpCapability Shader 2*c8dee2aaSAndroid Build Coastguard Worker %1 = OpExtInstImport "GLSL.std.450" 3*c8dee2aaSAndroid Build Coastguard Worker OpMemoryModel Logical GLSL450 4*c8dee2aaSAndroid Build Coastguard Worker OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor 5*c8dee2aaSAndroid Build Coastguard Worker OpExecutionMode %_entrypoint_v OriginUpperLeft 6*c8dee2aaSAndroid Build Coastguard Worker OpName %sk_FragColor "sk_FragColor" 7*c8dee2aaSAndroid Build Coastguard Worker OpName %_UniformBuffer "_UniformBuffer" 8*c8dee2aaSAndroid Build Coastguard Worker OpMemberName %_UniformBuffer 0 "colorGreen" 9*c8dee2aaSAndroid Build Coastguard Worker OpMemberName %_UniformBuffer 1 "colorRed" 10*c8dee2aaSAndroid Build Coastguard Worker OpName %_entrypoint_v "_entrypoint_v" 11*c8dee2aaSAndroid Build Coastguard Worker OpName %out_param_func1_vh "out_param_func1_vh" 12*c8dee2aaSAndroid Build Coastguard Worker OpName %out_param_func2_ih "out_param_func2_ih" 13*c8dee2aaSAndroid Build Coastguard Worker OpName %main "main" 14*c8dee2aaSAndroid Build Coastguard Worker OpName %testArray "testArray" 15*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %sk_FragColor RelaxedPrecision 16*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %sk_FragColor Location 0 17*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %sk_FragColor Index 0 18*c8dee2aaSAndroid Build Coastguard Worker OpMemberDecorate %_UniformBuffer 0 Offset 0 19*c8dee2aaSAndroid Build Coastguard Worker OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 20*c8dee2aaSAndroid Build Coastguard Worker OpMemberDecorate %_UniformBuffer 1 Offset 16 21*c8dee2aaSAndroid Build Coastguard Worker OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 22*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %_UniformBuffer Block 23*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %9 Binding 0 24*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %9 DescriptorSet 0 25*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %30 RelaxedPrecision 26*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %31 RelaxedPrecision 27*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %37 RelaxedPrecision 28*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %38 RelaxedPrecision 29*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %testArray RelaxedPrecision 30*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %_arr_float_int_2 ArrayStride 16 31*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %48 RelaxedPrecision 32*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %50 RelaxedPrecision 33*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %52 RelaxedPrecision 34*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %53 RelaxedPrecision 35*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %55 RelaxedPrecision 36*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %59 RelaxedPrecision 37*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %65 RelaxedPrecision 38*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %74 RelaxedPrecision 39*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %76 RelaxedPrecision 40*c8dee2aaSAndroid Build Coastguard Worker OpDecorate %77 RelaxedPrecision 41*c8dee2aaSAndroid Build Coastguard Worker %float = OpTypeFloat 32 42*c8dee2aaSAndroid Build Coastguard Worker %v4float = OpTypeVector %float 4 43*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Output_v4float = OpTypePointer Output %v4float 44*c8dee2aaSAndroid Build Coastguard Worker%sk_FragColor = OpVariable %_ptr_Output_v4float Output 45*c8dee2aaSAndroid Build Coastguard Worker%_UniformBuffer = OpTypeStruct %v4float %v4float 46*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 47*c8dee2aaSAndroid Build Coastguard Worker %9 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 48*c8dee2aaSAndroid Build Coastguard Worker %void = OpTypeVoid 49*c8dee2aaSAndroid Build Coastguard Worker %14 = OpTypeFunction %void 50*c8dee2aaSAndroid Build Coastguard Worker %float_0 = OpConstant %float 0 51*c8dee2aaSAndroid Build Coastguard Worker %v2float = OpTypeVector %float 2 52*c8dee2aaSAndroid Build Coastguard Worker %18 = OpConstantComposite %v2float %float_0 %float_0 53*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Function_v2float = OpTypePointer Function %v2float 54*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Function_float = OpTypePointer Function %float 55*c8dee2aaSAndroid Build Coastguard Worker %23 = OpTypeFunction %void %_ptr_Function_float 56*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 57*c8dee2aaSAndroid Build Coastguard Worker %int = OpTypeInt 32 1 58*c8dee2aaSAndroid Build Coastguard Worker %int_0 = OpConstant %int 0 59*c8dee2aaSAndroid Build Coastguard Worker %32 = OpTypeFunction %int %_ptr_Function_float 60*c8dee2aaSAndroid Build Coastguard Worker %int_1 = OpConstant %int 1 61*c8dee2aaSAndroid Build Coastguard Worker %40 = OpTypeFunction %v4float %_ptr_Function_v2float 62*c8dee2aaSAndroid Build Coastguard Worker %int_2 = OpConstant %int 2 63*c8dee2aaSAndroid Build Coastguard Worker%_arr_float_int_2 = OpTypeArray %float %int_2 64*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Function__arr_float_int_2 = OpTypePointer Function %_arr_float_int_2 65*c8dee2aaSAndroid Build Coastguard Worker %bool = OpTypeBool 66*c8dee2aaSAndroid Build Coastguard Worker %false = OpConstantFalse %bool 67*c8dee2aaSAndroid Build Coastguard Worker %float_1 = OpConstant %float 1 68*c8dee2aaSAndroid Build Coastguard Worker%_ptr_Function_v4float = OpTypePointer Function %v4float 69*c8dee2aaSAndroid Build Coastguard Worker%_entrypoint_v = OpFunction %void None %14 70*c8dee2aaSAndroid Build Coastguard Worker %15 = OpLabel 71*c8dee2aaSAndroid Build Coastguard Worker %19 = OpVariable %_ptr_Function_v2float Function 72*c8dee2aaSAndroid Build Coastguard Worker OpStore %19 %18 73*c8dee2aaSAndroid Build Coastguard Worker %21 = OpFunctionCall %v4float %main %19 74*c8dee2aaSAndroid Build Coastguard Worker OpStore %sk_FragColor %21 75*c8dee2aaSAndroid Build Coastguard Worker OpReturn 76*c8dee2aaSAndroid Build Coastguard Worker OpFunctionEnd 77*c8dee2aaSAndroid Build Coastguard Worker%out_param_func1_vh = OpFunction %void None %23 78*c8dee2aaSAndroid Build Coastguard Worker %24 = OpFunctionParameter %_ptr_Function_float 79*c8dee2aaSAndroid Build Coastguard Worker %25 = OpLabel 80*c8dee2aaSAndroid Build Coastguard Worker %26 = OpAccessChain %_ptr_Uniform_v4float %9 %int_0 81*c8dee2aaSAndroid Build Coastguard Worker %30 = OpLoad %v4float %26 82*c8dee2aaSAndroid Build Coastguard Worker %31 = OpCompositeExtract %float %30 1 83*c8dee2aaSAndroid Build Coastguard Worker OpStore %24 %31 84*c8dee2aaSAndroid Build Coastguard Worker OpReturn 85*c8dee2aaSAndroid Build Coastguard Worker OpFunctionEnd 86*c8dee2aaSAndroid Build Coastguard Worker%out_param_func2_ih = OpFunction %int None %32 87*c8dee2aaSAndroid Build Coastguard Worker %33 = OpFunctionParameter %_ptr_Function_float 88*c8dee2aaSAndroid Build Coastguard Worker %34 = OpLabel 89*c8dee2aaSAndroid Build Coastguard Worker %35 = OpAccessChain %_ptr_Uniform_v4float %9 %int_1 90*c8dee2aaSAndroid Build Coastguard Worker %37 = OpLoad %v4float %35 91*c8dee2aaSAndroid Build Coastguard Worker %38 = OpCompositeExtract %float %37 0 92*c8dee2aaSAndroid Build Coastguard Worker OpStore %33 %38 93*c8dee2aaSAndroid Build Coastguard Worker %39 = OpConvertFToS %int %38 94*c8dee2aaSAndroid Build Coastguard Worker OpReturnValue %39 95*c8dee2aaSAndroid Build Coastguard Worker OpFunctionEnd 96*c8dee2aaSAndroid Build Coastguard Worker %main = OpFunction %v4float None %40 97*c8dee2aaSAndroid Build Coastguard Worker %41 = OpFunctionParameter %_ptr_Function_v2float 98*c8dee2aaSAndroid Build Coastguard Worker %42 = OpLabel 99*c8dee2aaSAndroid Build Coastguard Worker %testArray = OpVariable %_ptr_Function__arr_float_int_2 Function 100*c8dee2aaSAndroid Build Coastguard Worker %48 = OpVariable %_ptr_Function_float Function 101*c8dee2aaSAndroid Build Coastguard Worker %53 = OpVariable %_ptr_Function_float Function 102*c8dee2aaSAndroid Build Coastguard Worker %68 = OpVariable %_ptr_Function_v4float Function 103*c8dee2aaSAndroid Build Coastguard Worker %47 = OpAccessChain %_ptr_Function_float %testArray %int_0 104*c8dee2aaSAndroid Build Coastguard Worker %49 = OpFunctionCall %int %out_param_func2_ih %48 105*c8dee2aaSAndroid Build Coastguard Worker %50 = OpLoad %float %48 106*c8dee2aaSAndroid Build Coastguard Worker OpStore %47 %50 107*c8dee2aaSAndroid Build Coastguard Worker %51 = OpAccessChain %_ptr_Function_float %testArray %49 108*c8dee2aaSAndroid Build Coastguard Worker %52 = OpLoad %float %51 109*c8dee2aaSAndroid Build Coastguard Worker OpStore %53 %52 110*c8dee2aaSAndroid Build Coastguard Worker %54 = OpFunctionCall %void %out_param_func1_vh %53 111*c8dee2aaSAndroid Build Coastguard Worker %55 = OpLoad %float %53 112*c8dee2aaSAndroid Build Coastguard Worker OpStore %51 %55 113*c8dee2aaSAndroid Build Coastguard Worker %58 = OpAccessChain %_ptr_Function_float %testArray %int_0 114*c8dee2aaSAndroid Build Coastguard Worker %59 = OpLoad %float %58 115*c8dee2aaSAndroid Build Coastguard Worker %61 = OpFOrdEqual %bool %59 %float_1 116*c8dee2aaSAndroid Build Coastguard Worker OpSelectionMerge %63 None 117*c8dee2aaSAndroid Build Coastguard Worker OpBranchConditional %61 %62 %63 118*c8dee2aaSAndroid Build Coastguard Worker %62 = OpLabel 119*c8dee2aaSAndroid Build Coastguard Worker %64 = OpAccessChain %_ptr_Function_float %testArray %int_1 120*c8dee2aaSAndroid Build Coastguard Worker %65 = OpLoad %float %64 121*c8dee2aaSAndroid Build Coastguard Worker %66 = OpFOrdEqual %bool %65 %float_1 122*c8dee2aaSAndroid Build Coastguard Worker OpBranch %63 123*c8dee2aaSAndroid Build Coastguard Worker %63 = OpLabel 124*c8dee2aaSAndroid Build Coastguard Worker %67 = OpPhi %bool %false %42 %66 %62 125*c8dee2aaSAndroid Build Coastguard Worker OpSelectionMerge %72 None 126*c8dee2aaSAndroid Build Coastguard Worker OpBranchConditional %67 %70 %71 127*c8dee2aaSAndroid Build Coastguard Worker %70 = OpLabel 128*c8dee2aaSAndroid Build Coastguard Worker %73 = OpAccessChain %_ptr_Uniform_v4float %9 %int_0 129*c8dee2aaSAndroid Build Coastguard Worker %74 = OpLoad %v4float %73 130*c8dee2aaSAndroid Build Coastguard Worker OpStore %68 %74 131*c8dee2aaSAndroid Build Coastguard Worker OpBranch %72 132*c8dee2aaSAndroid Build Coastguard Worker %71 = OpLabel 133*c8dee2aaSAndroid Build Coastguard Worker %75 = OpAccessChain %_ptr_Uniform_v4float %9 %int_1 134*c8dee2aaSAndroid Build Coastguard Worker %76 = OpLoad %v4float %75 135*c8dee2aaSAndroid Build Coastguard Worker OpStore %68 %76 136*c8dee2aaSAndroid Build Coastguard Worker OpBranch %72 137*c8dee2aaSAndroid Build Coastguard Worker %72 = OpLabel 138*c8dee2aaSAndroid Build Coastguard Worker %77 = OpLoad %v4float %68 139*c8dee2aaSAndroid Build Coastguard Worker OpReturnValue %77 140*c8dee2aaSAndroid Build Coastguard Worker OpFunctionEnd 141