| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 120 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %tint_symbol %tint_symbol_2 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %buf1 "buf1" |
| OpMemberName %buf1 0 "x_GLF_uniform_int_values" |
| OpName %x_7 "x_7" |
| OpName %gl_FragCoord "gl_FragCoord" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "x_GLF_uniform_float_values" |
| OpName %x_11 "x_11" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %tint_symbol "tint_symbol" |
| OpName %tint_symbol_2 "tint_symbol_2" |
| OpName %main_1 "main_1" |
| OpName %i "i" |
| OpName %arr "arr" |
| OpName %a "a" |
| OpName %main_out "main_out" |
| OpMemberName %main_out 0 "x_GLF_color_1" |
| OpName %tint_symbol_3 "tint_symbol_3" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %main "main" |
| OpDecorate %buf1 Block |
| OpMemberDecorate %buf1 0 Offset 0 |
| OpDecorate %_arr_int_uint_3 ArrayStride 16 |
| OpDecorate %x_7 NonWritable |
| OpDecorate %x_7 DescriptorSet 0 |
| OpDecorate %x_7 Binding 1 |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %_arr_float_uint_1 ArrayStride 16 |
| OpDecorate %x_11 NonWritable |
| OpDecorate %x_11 DescriptorSet 0 |
| OpDecorate %x_11 Binding 0 |
| OpDecorate %tint_symbol BuiltIn FragCoord |
| OpDecorate %tint_symbol_2 Location 0 |
| OpDecorate %_arr_int_uint_2 ArrayStride 4 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_3 = OpConstant %uint 3 |
| %_arr_int_uint_3 = OpTypeArray %int %uint_3 |
| %buf1 = OpTypeStruct %_arr_int_uint_3 |
| %_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1 |
| %x_7 = OpVariable %_ptr_Uniform_buf1 Uniform |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %12 = OpConstantNull %v4float |
| %gl_FragCoord = OpVariable %_ptr_Private_v4float Private %12 |
| %uint_1 = OpConstant %uint 1 |
| %_arr_float_uint_1 = OpTypeArray %float %uint_1 |
| %buf0 = OpTypeStruct %_arr_float_uint_1 |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_11 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %12 |
| %_ptr_Input_v4float = OpTypePointer Input %v4float |
| %tint_symbol = OpVariable %_ptr_Input_v4float Input |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %tint_symbol_2 = OpVariable %_ptr_Output_v4float Output %12 |
| %void = OpTypeVoid |
| %23 = OpTypeFunction %void |
| %_ptr_Function_int = OpTypePointer Function %int |
| %29 = OpConstantNull %int |
| %uint_2 = OpConstant %uint 2 |
| %_arr_int_uint_2 = OpTypeArray %int %uint_2 |
| %_ptr_Function__arr_int_uint_2 = OpTypePointer Function %_arr_int_uint_2 |
| %34 = OpConstantNull %_arr_int_uint_2 |
| %uint_0 = OpConstant %uint 0 |
| %int_0 = OpConstant %int 0 |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %int_2 = OpConstant %int 2 |
| %bool = OpTypeBool |
| %int_1 = OpConstant %int 1 |
| %int_n1 = OpConstant %int -1 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %main_out = OpTypeStruct %v4float |
| %107 = OpTypeFunction %void %main_out |
| %main_1 = OpFunction %void None %23 |
| %26 = OpLabel |
| %i = OpVariable %_ptr_Function_int Function %29 |
| %arr = OpVariable %_ptr_Function__arr_int_uint_2 Function %34 |
| %a = OpVariable %_ptr_Function_int Function %29 |
| %39 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %40 = OpLoad %int %39 |
| OpStore %i %40 |
| OpBranch %41 |
| %41 = OpLabel |
| OpLoopMerge %42 %43 None |
| OpBranch %44 |
| %44 = OpLabel |
| %45 = OpLoad %int %i |
| %47 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_2 |
| %48 = OpLoad %int %47 |
| %49 = OpSLessThan %bool %45 %48 |
| OpSelectionMerge %51 None |
| OpBranchConditional %49 %52 %53 |
| %52 = OpLabel |
| OpBranch %51 |
| %53 = OpLabel |
| OpBranch %42 |
| %51 = OpLabel |
| %54 = OpLoad %int %i |
| %55 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %56 = OpLoad %int %55 |
| %57 = OpAccessChain %_ptr_Function_int %arr %54 |
| OpStore %57 %56 |
| OpBranch %43 |
| %43 = OpLabel |
| %58 = OpLoad %int %i |
| %60 = OpIAdd %int %58 %int_1 |
| OpStore %i %60 |
| OpBranch %41 |
| %42 = OpLabel |
| OpStore %a %int_n1 |
| %63 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %64 = OpLoad %float %63 |
| %66 = OpAccessChain %_ptr_Uniform_float %x_11 %uint_0 %int_0 |
| %67 = OpLoad %float %66 |
| %69 = OpFOrdLessThan %bool %64 %67 |
| %68 = OpLogicalNot %bool %69 |
| OpSelectionMerge %70 None |
| OpBranchConditional %68 %71 %70 |
| %71 = OpLabel |
| %72 = OpLoad %int %a |
| %73 = OpIAdd %int %72 %int_1 |
| OpStore %a %73 |
| %74 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_1 |
| %75 = OpLoad %int %74 |
| %76 = OpAccessChain %_ptr_Function_int %arr %73 |
| OpStore %76 %75 |
| OpBranch %70 |
| %70 = OpLabel |
| %77 = OpLoad %int %a |
| %78 = OpIAdd %int %77 %int_1 |
| OpStore %a %78 |
| %79 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_2 |
| %80 = OpLoad %int %79 |
| %81 = OpAccessChain %_ptr_Function_int %arr %78 |
| OpStore %81 %80 |
| %82 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %83 = OpLoad %int %82 |
| %84 = OpAccessChain %_ptr_Function_int %arr %83 |
| %85 = OpLoad %int %84 |
| %86 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_1 |
| %87 = OpLoad %int %86 |
| %88 = OpIEqual %bool %85 %87 |
| OpSelectionMerge %89 None |
| OpBranchConditional %88 %90 %91 |
| %90 = OpLabel |
| %92 = OpLoad %int %a |
| %93 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %94 = OpLoad %int %93 |
| %95 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %96 = OpLoad %int %95 |
| %97 = OpLoad %int %a |
| %98 = OpConvertSToF %float %92 |
| %99 = OpConvertSToF %float %94 |
| %100 = OpConvertSToF %float %96 |
| %101 = OpConvertSToF %float %97 |
| %102 = OpCompositeConstruct %v4float %98 %99 %100 %101 |
| OpStore %x_GLF_color %102 |
| OpBranch %89 |
| %91 = OpLabel |
| %103 = OpAccessChain %_ptr_Uniform_int %x_7 %uint_0 %int_0 |
| %104 = OpLoad %int %103 |
| %105 = OpConvertSToF %float %104 |
| %106 = OpCompositeConstruct %v4float %105 %105 %105 %105 |
| OpStore %x_GLF_color %106 |
| OpBranch %89 |
| %89 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_symbol_3 = OpFunction %void None %107 |
| %tint_symbol_1 = OpFunctionParameter %main_out |
| %111 = OpLabel |
| %112 = OpCompositeExtract %v4float %tint_symbol_1 0 |
| OpStore %tint_symbol_2 %112 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %23 |
| %114 = OpLabel |
| %115 = OpLoad %v4float %tint_symbol |
| OpStore %gl_FragCoord %115 |
| %116 = OpFunctionCall %void %main_1 |
| %118 = OpLoad %v4float %x_GLF_color |
| %119 = OpCompositeConstruct %main_out %118 |
| %117 = OpFunctionCall %void %tint_symbol_3 %119 |
| OpReturn |
| OpFunctionEnd |