| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 113 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %tint_symbol_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "x_GLF_uniform_int_values" |
| OpName %x_7 "x_7" |
| OpName %buf1 "buf1" |
| OpMemberName %buf1 0 "x_GLF_uniform_float_values" |
| OpName %x_11 "x_11" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %main_1 "main_1" |
| OpName %color "color" |
| OpName %i "i" |
| OpName %j "j" |
| OpName %k "k" |
| OpName %main_out "main_out" |
| OpMemberName %main_out 0 "x_GLF_color_1" |
| OpName %tint_symbol_2 "tint_symbol_2" |
| OpName %tint_symbol "tint_symbol" |
| OpName %main "main" |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %_arr_int_uint_2 ArrayStride 16 |
| OpDecorate %x_7 NonWritable |
| OpDecorate %x_7 DescriptorSet 0 |
| OpDecorate %x_7 Binding 0 |
| OpDecorate %buf1 Block |
| OpMemberDecorate %buf1 0 Offset 0 |
| OpDecorate %_arr_float_uint_1 ArrayStride 16 |
| OpDecorate %x_11 NonWritable |
| OpDecorate %x_11 DescriptorSet 0 |
| OpDecorate %x_11 Binding 1 |
| OpDecorate %tint_symbol_1 Location 0 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %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 |
| %x_7 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %float = OpTypeFloat 32 |
| %uint_1 = OpConstant %uint 1 |
| %_arr_float_uint_1 = OpTypeArray %float %uint_1 |
| %buf1 = OpTypeStruct %_arr_float_uint_1 |
| %_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1 |
| %x_11 = OpVariable %_ptr_Uniform_buf1 Uniform |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %17 = OpConstantNull %v4float |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %17 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %17 |
| %void = OpTypeVoid |
| %20 = OpTypeFunction %void |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %_ptr_Function_int = OpTypePointer Function %int |
| %28 = OpConstantNull %int |
| %float_1 = OpConstant %float 1 |
| %32 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| %uint_0 = OpConstant %uint 0 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %int_1 = OpConstant %int 1 |
| %bool = OpTypeBool |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %_ptr_Function_float = OpTypePointer Function %float |
| %main_out = OpTypeStruct %v4float |
| %101 = OpTypeFunction %void %main_out |
| %main_1 = OpFunction %void None %20 |
| %23 = OpLabel |
| %color = OpVariable %_ptr_Function_v4float Function %17 |
| %i = OpVariable %_ptr_Function_int Function %28 |
| %j = OpVariable %_ptr_Function_int Function %28 |
| %k = OpVariable %_ptr_Function_int Function %28 |
| OpStore %color %32 |
| %36 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %37 = OpLoad %int %36 |
| OpStore %i %37 |
| OpBranch %38 |
| %38 = OpLabel |
| OpLoopMerge %39 %40 None |
| OpBranch %41 |
| %41 = OpLabel |
| %42 = OpLoad %int %i |
| %44 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_1 |
| %45 = OpLoad %int %44 |
| %46 = OpSLessThan %bool %42 %45 |
| OpSelectionMerge %48 None |
| OpBranchConditional %46 %49 %50 |
| %49 = OpLabel |
| OpBranch %48 |
| %50 = OpLabel |
| OpBranch %39 |
| %48 = OpLabel |
| %51 = OpLoad %int %i |
| OpSelectionMerge %52 None |
| OpSwitch %51 %53 2 %54 1 %55 |
| %54 = OpLabel |
| %56 = OpLoad %int %i |
| %58 = OpAccessChain %_ptr_Uniform_float %x_11 %uint_0 %int_0 |
| %59 = OpLoad %float %58 |
| %61 = OpAccessChain %_ptr_Function_float %color %56 |
| OpStore %61 %59 |
| OpBranch %52 |
| %55 = OpLabel |
| %62 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %63 = OpLoad %int %62 |
| OpStore %j %63 |
| OpBranch %64 |
| %64 = OpLabel |
| OpLoopMerge %65 %66 None |
| OpBranch %67 |
| %67 = OpLabel |
| %68 = OpLoad %int %i |
| %69 = OpLoad %int %i |
| %70 = OpSGreaterThan %bool %68 %69 |
| OpSelectionMerge %71 None |
| OpBranchConditional %70 %72 %73 |
| %72 = OpLabel |
| OpBranch %71 |
| %73 = OpLabel |
| OpBranch %65 |
| %71 = OpLabel |
| %74 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %75 = OpLoad %int %74 |
| OpStore %k %75 |
| OpBranch %76 |
| %76 = OpLabel |
| OpLoopMerge %77 %78 None |
| OpBranch %79 |
| %79 = OpLabel |
| %80 = OpLoad %int %k |
| %81 = OpLoad %int %i |
| %82 = OpSLessThan %bool %80 %81 |
| OpSelectionMerge %83 None |
| OpBranchConditional %82 %84 %85 |
| %84 = OpLabel |
| OpBranch %83 |
| %85 = OpLabel |
| OpBranch %77 |
| %83 = OpLabel |
| %86 = OpLoad %int %k |
| %87 = OpAccessChain %_ptr_Uniform_float %x_11 %uint_0 %int_0 |
| %88 = OpLoad %float %87 |
| %89 = OpAccessChain %_ptr_Function_float %color %86 |
| OpStore %89 %88 |
| OpBranch %78 |
| %78 = OpLabel |
| %90 = OpLoad %int %k |
| %91 = OpIAdd %int %90 %int_1 |
| OpStore %k %91 |
| OpBranch %76 |
| %77 = OpLabel |
| OpBranch %66 |
| %66 = OpLabel |
| %92 = OpLoad %int %j |
| %93 = OpIAdd %int %92 %int_1 |
| OpStore %j %93 |
| OpBranch %64 |
| %65 = OpLabel |
| %94 = OpLoad %int %i |
| %95 = OpAccessChain %_ptr_Uniform_float %x_11 %uint_0 %int_0 |
| %96 = OpLoad %float %95 |
| %97 = OpAccessChain %_ptr_Function_float %color %94 |
| OpStore %97 %96 |
| OpBranch %52 |
| %53 = OpLabel |
| OpBranch %52 |
| %52 = OpLabel |
| OpBranch %40 |
| %40 = OpLabel |
| %98 = OpLoad %int %i |
| %99 = OpIAdd %int %98 %int_1 |
| OpStore %i %99 |
| OpBranch %38 |
| %39 = OpLabel |
| %100 = OpLoad %v4float %color |
| OpStore %x_GLF_color %100 |
| OpReturn |
| OpFunctionEnd |
| %tint_symbol_2 = OpFunction %void None %101 |
| %tint_symbol = OpFunctionParameter %main_out |
| %105 = OpLabel |
| %106 = OpCompositeExtract %v4float %tint_symbol 0 |
| OpStore %tint_symbol_1 %106 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %20 |
| %108 = OpLabel |
| %109 = OpFunctionCall %void %main_1 |
| %111 = OpLoad %v4float %x_GLF_color |
| %112 = OpCompositeConstruct %main_out %111 |
| %110 = OpFunctionCall %void %tint_symbol_2 %112 |
| OpReturn |
| OpFunctionEnd |