| OpCapability Shader |
| %1 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor |
| OpExecutionMode %_entrypoint_v OriginUpperLeft |
| OpName %sk_FragColor "sk_FragColor" |
| OpName %_UniformBuffer "_UniformBuffer" |
| OpMemberName %_UniformBuffer 0 "colorGreen" |
| OpMemberName %_UniformBuffer 1 "colorRed" |
| OpName %_entrypoint_v "_entrypoint_v" |
| OpName %main "main" |
| OpName %InnerLUT "InnerLUT" |
| OpMemberName %InnerLUT 0 "values" |
| OpName %OuterLUT "OuterLUT" |
| OpMemberName %OuterLUT 0 "inner" |
| OpName %Root "Root" |
| OpMemberName %Root 0 "valueAtRoot" |
| OpMemberName %Root 1 "outer" |
| OpName %data "data" |
| OpName %values "values" |
| OpName %i "i" |
| OpName %j "j" |
| OpName %k "k" |
| OpName %ok "ok" |
| OpDecorate %sk_FragColor RelaxedPrecision |
| OpDecorate %sk_FragColor Location 0 |
| OpDecorate %sk_FragColor Index 0 |
| OpMemberDecorate %_UniformBuffer 0 Offset 0 |
| OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision |
| OpMemberDecorate %_UniformBuffer 1 Offset 16 |
| OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision |
| OpDecorate %_UniformBuffer Block |
| OpDecorate %7 Binding 0 |
| OpDecorate %7 DescriptorSet 0 |
| OpMemberDecorate %InnerLUT 0 Offset 0 |
| OpDecorate %_arr_InnerLUT_int_3 ArrayStride 16 |
| OpMemberDecorate %OuterLUT 0 Offset 0 |
| OpMemberDecorate %OuterLUT 0 RelaxedPrecision |
| OpDecorate %_arr_OuterLUT_int_3 ArrayStride 48 |
| OpMemberDecorate %Root 0 Offset 0 |
| OpMemberDecorate %Root 1 Offset 16 |
| OpMemberDecorate %Root 1 RelaxedPrecision |
| OpDecorate %196 RelaxedPrecision |
| OpDecorate %198 RelaxedPrecision |
| OpDecorate %199 RelaxedPrecision |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %sk_FragColor = OpVariable %_ptr_Output_v4float Output |
| %_UniformBuffer = OpTypeStruct %v4float %v4float |
| %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer |
| %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void |
| %float_0 = OpConstant %float 0 |
| %v2float = OpTypeVector %float 2 |
| %16 = OpConstantComposite %v2float %float_0 %float_0 |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %20 = OpTypeFunction %v4float %_ptr_Function_v2float |
| %int = OpTypeInt 32 1 |
| %v3float = OpTypeVector %float 3 |
| %InnerLUT = OpTypeStruct %v3float |
| %int_3 = OpConstant %int 3 |
| %_arr_InnerLUT_int_3 = OpTypeArray %InnerLUT %int_3 |
| %OuterLUT = OpTypeStruct %_arr_InnerLUT_int_3 |
| %_arr_OuterLUT_int_3 = OpTypeArray %OuterLUT %int_3 |
| %Root = OpTypeStruct %int %_arr_OuterLUT_int_3 |
| %_ptr_Function_Root = OpTypePointer Function %Root |
| %int_1234 = OpConstant %int 1234 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %39 = OpConstantComposite %v3float %float_0 %float_0 %float_0 |
| %bool = OpTypeBool |
| %float_1 = OpConstant %float 1 |
| %float_10 = OpConstant %float 10 |
| %float_100 = OpConstant %float 100 |
| %61 = OpConstantComposite %v3float %float_1 %float_10 %float_100 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %_ptr_Function_bool = OpTypePointer Function %bool |
| %false = OpConstantFalse %bool |
| %v3bool = OpTypeVector %bool 3 |
| %float_2 = OpConstant %float 2 |
| %float_20 = OpConstant %float 20 |
| %float_200 = OpConstant %float 200 |
| %107 = OpConstantComposite %v3float %float_2 %float_20 %float_200 |
| %int_2 = OpConstant %int 2 |
| %float_3 = OpConstant %float 3 |
| %float_30 = OpConstant %float 30 |
| %float_300 = OpConstant %float 300 |
| %119 = OpConstantComposite %v3float %float_3 %float_30 %float_300 |
| %float_4 = OpConstant %float 4 |
| %float_40 = OpConstant %float 40 |
| %float_400 = OpConstant %float 400 |
| %130 = OpConstantComposite %v3float %float_4 %float_40 %float_400 |
| %float_5 = OpConstant %float 5 |
| %float_50 = OpConstant %float 50 |
| %float_500 = OpConstant %float 500 |
| %141 = OpConstantComposite %v3float %float_5 %float_50 %float_500 |
| %float_6 = OpConstant %float 6 |
| %float_60 = OpConstant %float 60 |
| %float_600 = OpConstant %float 600 |
| %152 = OpConstantComposite %v3float %float_6 %float_60 %float_600 |
| %float_7 = OpConstant %float 7 |
| %float_70 = OpConstant %float 70 |
| %float_700 = OpConstant %float 700 |
| %163 = OpConstantComposite %v3float %float_7 %float_70 %float_700 |
| %float_8 = OpConstant %float 8 |
| %float_80 = OpConstant %float 80 |
| %float_800 = OpConstant %float 800 |
| %174 = OpConstantComposite %v3float %float_8 %float_80 %float_800 |
| %float_9 = OpConstant %float 9 |
| %float_90 = OpConstant %float 90 |
| %float_900 = OpConstant %float 900 |
| %185 = OpConstantComposite %v3float %float_9 %float_90 %float_900 |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %_entrypoint_v = OpFunction %void None %12 |
| %13 = OpLabel |
| %17 = OpVariable %_ptr_Function_v2float Function |
| OpStore %17 %16 |
| %19 = OpFunctionCall %v4float %main %17 |
| OpStore %sk_FragColor %19 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %v4float None %20 |
| %21 = OpFunctionParameter %_ptr_Function_v2float |
| %22 = OpLabel |
| %data = OpVariable %_ptr_Function_Root Function |
| %values = OpVariable %_ptr_Function_v3float Function |
| %i = OpVariable %_ptr_Function_int Function |
| %j = OpVariable %_ptr_Function_int Function |
| %k = OpVariable %_ptr_Function_int Function |
| %ok = OpVariable %_ptr_Function_bool Function |
| %189 = OpVariable %_ptr_Function_v4float Function |
| %35 = OpAccessChain %_ptr_Function_int %data %int_0 |
| OpStore %35 %int_1234 |
| OpStore %values %39 |
| OpStore %i %int_0 |
| OpBranch %41 |
| %41 = OpLabel |
| OpLoopMerge %45 %44 None |
| OpBranch %42 |
| %42 = OpLabel |
| %46 = OpLoad %int %i |
| %47 = OpSLessThan %bool %46 %int_3 |
| OpBranchConditional %47 %43 %45 |
| %43 = OpLabel |
| OpStore %j %int_0 |
| OpBranch %50 |
| %50 = OpLabel |
| OpLoopMerge %54 %53 None |
| OpBranch %51 |
| %51 = OpLabel |
| %55 = OpLoad %int %j |
| %56 = OpSLessThan %bool %55 %int_3 |
| OpBranchConditional %56 %52 %54 |
| %52 = OpLabel |
| %57 = OpLoad %v3float %values |
| %62 = OpFAdd %v3float %57 %61 |
| OpStore %values %62 |
| OpStore %k %int_0 |
| OpBranch %64 |
| %64 = OpLabel |
| OpLoopMerge %68 %67 None |
| OpBranch %65 |
| %65 = OpLabel |
| %69 = OpLoad %int %k |
| %70 = OpSLessThan %bool %69 %int_3 |
| OpBranchConditional %70 %66 %68 |
| %66 = OpLabel |
| %71 = OpLoad %v3float %values |
| %72 = OpLoad %int %k |
| %73 = OpVectorExtractDynamic %float %71 %72 |
| %75 = OpLoad %int %i |
| %76 = OpLoad %int %j |
| %77 = OpLoad %int %k |
| %78 = OpAccessChain %_ptr_Function_float %data %int_1 %75 %int_0 %76 %int_0 %77 |
| OpStore %78 %73 |
| OpBranch %67 |
| %67 = OpLabel |
| %80 = OpLoad %int %k |
| %81 = OpIAdd %int %80 %int_1 |
| OpStore %k %81 |
| OpBranch %64 |
| %68 = OpLabel |
| OpBranch %53 |
| %53 = OpLabel |
| %82 = OpLoad %int %j |
| %83 = OpIAdd %int %82 %int_1 |
| OpStore %j %83 |
| OpBranch %50 |
| %54 = OpLabel |
| OpBranch %44 |
| %44 = OpLabel |
| %84 = OpLoad %int %i |
| %85 = OpIAdd %int %84 %int_1 |
| OpStore %i %85 |
| OpBranch %41 |
| %45 = OpLabel |
| %89 = OpAccessChain %_ptr_Function_int %data %int_0 |
| %90 = OpLoad %int %89 |
| %91 = OpIEqual %bool %90 %int_1234 |
| OpSelectionMerge %93 None |
| OpBranchConditional %91 %92 %93 |
| %92 = OpLabel |
| %94 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_0 %int_0 %int_0 %int_0 |
| %95 = OpLoad %v3float %94 |
| %96 = OpFOrdEqual %v3bool %95 %61 |
| %98 = OpAll %bool %96 |
| OpBranch %93 |
| %93 = OpLabel |
| %99 = OpPhi %bool %false %45 %98 %92 |
| OpSelectionMerge %101 None |
| OpBranchConditional %99 %100 %101 |
| %100 = OpLabel |
| %102 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_0 %int_0 %int_1 %int_0 |
| %103 = OpLoad %v3float %102 |
| %108 = OpFOrdEqual %v3bool %103 %107 |
| %109 = OpAll %bool %108 |
| OpBranch %101 |
| %101 = OpLabel |
| %110 = OpPhi %bool %false %93 %109 %100 |
| OpSelectionMerge %112 None |
| OpBranchConditional %110 %111 %112 |
| %111 = OpLabel |
| %114 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_0 %int_0 %int_2 %int_0 |
| %115 = OpLoad %v3float %114 |
| %120 = OpFOrdEqual %v3bool %115 %119 |
| %121 = OpAll %bool %120 |
| OpBranch %112 |
| %112 = OpLabel |
| %122 = OpPhi %bool %false %101 %121 %111 |
| OpSelectionMerge %124 None |
| OpBranchConditional %122 %123 %124 |
| %123 = OpLabel |
| %125 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_1 %int_0 %int_0 %int_0 |
| %126 = OpLoad %v3float %125 |
| %131 = OpFOrdEqual %v3bool %126 %130 |
| %132 = OpAll %bool %131 |
| OpBranch %124 |
| %124 = OpLabel |
| %133 = OpPhi %bool %false %112 %132 %123 |
| OpSelectionMerge %135 None |
| OpBranchConditional %133 %134 %135 |
| %134 = OpLabel |
| %136 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_1 %int_0 %int_1 %int_0 |
| %137 = OpLoad %v3float %136 |
| %142 = OpFOrdEqual %v3bool %137 %141 |
| %143 = OpAll %bool %142 |
| OpBranch %135 |
| %135 = OpLabel |
| %144 = OpPhi %bool %false %124 %143 %134 |
| OpSelectionMerge %146 None |
| OpBranchConditional %144 %145 %146 |
| %145 = OpLabel |
| %147 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_1 %int_0 %int_2 %int_0 |
| %148 = OpLoad %v3float %147 |
| %153 = OpFOrdEqual %v3bool %148 %152 |
| %154 = OpAll %bool %153 |
| OpBranch %146 |
| %146 = OpLabel |
| %155 = OpPhi %bool %false %135 %154 %145 |
| OpSelectionMerge %157 None |
| OpBranchConditional %155 %156 %157 |
| %156 = OpLabel |
| %158 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_2 %int_0 %int_0 %int_0 |
| %159 = OpLoad %v3float %158 |
| %164 = OpFOrdEqual %v3bool %159 %163 |
| %165 = OpAll %bool %164 |
| OpBranch %157 |
| %157 = OpLabel |
| %166 = OpPhi %bool %false %146 %165 %156 |
| OpSelectionMerge %168 None |
| OpBranchConditional %166 %167 %168 |
| %167 = OpLabel |
| %169 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_2 %int_0 %int_1 %int_0 |
| %170 = OpLoad %v3float %169 |
| %175 = OpFOrdEqual %v3bool %170 %174 |
| %176 = OpAll %bool %175 |
| OpBranch %168 |
| %168 = OpLabel |
| %177 = OpPhi %bool %false %157 %176 %167 |
| OpSelectionMerge %179 None |
| OpBranchConditional %177 %178 %179 |
| %178 = OpLabel |
| %180 = OpAccessChain %_ptr_Function_v3float %data %int_1 %int_2 %int_0 %int_2 %int_0 |
| %181 = OpLoad %v3float %180 |
| %186 = OpFOrdEqual %v3bool %181 %185 |
| %187 = OpAll %bool %186 |
| OpBranch %179 |
| %179 = OpLabel |
| %188 = OpPhi %bool %false %168 %187 %178 |
| OpStore %ok %188 |
| OpSelectionMerge %193 None |
| OpBranchConditional %188 %191 %192 |
| %191 = OpLabel |
| %194 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 |
| %196 = OpLoad %v4float %194 |
| OpStore %189 %196 |
| OpBranch %193 |
| %192 = OpLabel |
| %197 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 |
| %198 = OpLoad %v4float %197 |
| OpStore %189 %198 |
| OpBranch %193 |
| %193 = OpLabel |
| %199 = OpLoad %v4float %189 |
| OpReturnValue %199 |
| OpFunctionEnd |