| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 409 |
| ; Schema: 0 |
| OpCapability Shader |
| %173 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %tint_symbol %tint_symbol_2 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %data "data" |
| OpName %temp "temp" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "injectionSwitch" |
| OpName %x_28 "x_28" |
| OpName %gl_FragCoord "gl_FragCoord" |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %tint_symbol "tint_symbol" |
| OpName %tint_symbol_2 "tint_symbol_2" |
| OpName %merge_i1_i1_i1_ "merge_i1_i1_i1_" |
| OpName %from "from" |
| OpName %mid "mid" |
| OpName %to "to" |
| OpName %k "k" |
| OpName %i "i" |
| OpName %j "j" |
| OpName %i_1 "i_1" |
| OpName %mergeSort_ "mergeSort_" |
| OpName %low "low" |
| OpName %high "high" |
| OpName %m "m" |
| OpName %i_2 "i_2" |
| OpName %from_1 "from_1" |
| OpName %mid_1 "mid_1" |
| OpName %to_1 "to_1" |
| OpName %param "param" |
| OpName %param_1 "param_1" |
| OpName %param_2 "param_2" |
| OpName %main_1 "main_1" |
| OpName %i_3 "i_3" |
| OpName %j_1 "j_1" |
| OpName %grey "grey" |
| 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 %_arr_int_uint_10 ArrayStride 4 |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %x_28 NonWritable |
| OpDecorate %x_28 DescriptorSet 0 |
| OpDecorate %x_28 Binding 0 |
| OpDecorate %tint_symbol BuiltIn FragCoord |
| OpDecorate %tint_symbol_2 Location 0 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_10 = OpConstant %uint 10 |
| %_arr_int_uint_10 = OpTypeArray %int %uint_10 |
| %_ptr_Private__arr_int_uint_10 = OpTypePointer Private %_arr_int_uint_10 |
| %7 = OpConstantNull %_arr_int_uint_10 |
| %data = OpVariable %_ptr_Private__arr_int_uint_10 Private %7 |
| %temp = OpVariable %_ptr_Private__arr_int_uint_10 Private %7 |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %buf0 = OpTypeStruct %v2float |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_28 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %17 = OpConstantNull %v4float |
| %gl_FragCoord = OpVariable %_ptr_Private_v4float Private %17 |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %17 |
| %_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 %17 |
| %void = OpTypeVoid |
| %_ptr_Function_int = OpTypePointer Function %int |
| %23 = OpTypeFunction %void %_ptr_Function_int %_ptr_Function_int %_ptr_Function_int |
| %32 = OpConstantNull %int |
| %int_1 = OpConstant %int 1 |
| %bool = OpTypeBool |
| %_ptr_Private_int = OpTypePointer Private %int |
| %int_10 = OpConstant %int 10 |
| %128 = OpTypeFunction %void |
| %int_0 = OpConstant %int 0 |
| %int_9 = OpConstant %int 9 |
| %int_2 = OpConstant %int 2 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %197 = OpConstantNull %float |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %int_n5 = OpConstant %int -5 |
| %int_n4 = OpConstant %int -4 |
| %int_n3 = OpConstant %int -3 |
| %int_n2 = OpConstant %int -2 |
| %int_n1 = OpConstant %int -1 |
| %int_3 = OpConstant %int 3 |
| %int_4 = OpConstant %int 4 |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %int_30 = OpConstant %int 30 |
| %float_0_5 = OpConstant %float 0.5 |
| %float_10 = OpConstant %float 10 |
| %int_60 = OpConstant %int 60 |
| %int_90 = OpConstant %int 90 |
| %int_120 = OpConstant %int 120 |
| %int_150 = OpConstant %int 150 |
| %int_180 = OpConstant %int 180 |
| %int_5 = OpConstant %int 5 |
| %int_210 = OpConstant %int 210 |
| %int_6 = OpConstant %int 6 |
| %int_240 = OpConstant %int 240 |
| %int_7 = OpConstant %int 7 |
| %int_270 = OpConstant %int 270 |
| %int_8 = OpConstant %int 8 |
| %v3float = OpTypeVector %float 3 |
| %float_1 = OpConstant %float 1 |
| %main_out = OpTypeStruct %v4float |
| %396 = OpTypeFunction %void %main_out |
| %merge_i1_i1_i1_ = OpFunction %void None %23 |
| %from = OpFunctionParameter %_ptr_Function_int |
| %mid = OpFunctionParameter %_ptr_Function_int |
| %to = OpFunctionParameter %_ptr_Function_int |
| %30 = OpLabel |
| %k = OpVariable %_ptr_Function_int Function %32 |
| %i = OpVariable %_ptr_Function_int Function %32 |
| %j = OpVariable %_ptr_Function_int Function %32 |
| %i_1 = OpVariable %_ptr_Function_int Function %32 |
| %37 = OpLoad %int %from |
| OpStore %k %37 |
| %39 = OpLoad %int %from |
| OpStore %i %39 |
| %41 = OpLoad %int %mid |
| %43 = OpIAdd %int %41 %int_1 |
| OpStore %j %43 |
| OpBranch %44 |
| %44 = OpLabel |
| OpLoopMerge %45 %46 None |
| OpBranch %47 |
| %47 = OpLabel |
| %48 = OpLoad %int %i |
| %50 = OpLoad %int %mid |
| %51 = OpLoad %int %j |
| %53 = OpLoad %int %to |
| %54 = OpSLessThanEqual %bool %48 %50 |
| %56 = OpSLessThanEqual %bool %51 %53 |
| %57 = OpLogicalAnd %bool %54 %56 |
| OpSelectionMerge %58 None |
| OpBranchConditional %57 %59 %60 |
| %59 = OpLabel |
| OpBranch %58 |
| %60 = OpLabel |
| OpBranch %45 |
| %58 = OpLabel |
| %61 = OpLoad %int %i |
| %63 = OpAccessChain %_ptr_Private_int %data %61 |
| %64 = OpLoad %int %63 |
| %65 = OpLoad %int %j |
| %66 = OpAccessChain %_ptr_Private_int %data %65 |
| %67 = OpLoad %int %66 |
| %68 = OpSLessThan %bool %64 %67 |
| OpSelectionMerge %69 None |
| OpBranchConditional %68 %70 %71 |
| %70 = OpLabel |
| %72 = OpLoad %int %k |
| %73 = OpIAdd %int %72 %int_1 |
| OpStore %k %73 |
| %74 = OpLoad %int %i |
| %75 = OpIAdd %int %74 %int_1 |
| OpStore %i %75 |
| %76 = OpAccessChain %_ptr_Private_int %data %74 |
| %77 = OpLoad %int %76 |
| %78 = OpAccessChain %_ptr_Private_int %temp %72 |
| OpStore %78 %77 |
| OpBranch %69 |
| %71 = OpLabel |
| %79 = OpLoad %int %k |
| %80 = OpIAdd %int %79 %int_1 |
| OpStore %k %80 |
| %81 = OpLoad %int %j |
| %82 = OpIAdd %int %81 %int_1 |
| OpStore %j %82 |
| %83 = OpAccessChain %_ptr_Private_int %data %81 |
| %84 = OpLoad %int %83 |
| %85 = OpAccessChain %_ptr_Private_int %temp %79 |
| OpStore %85 %84 |
| OpBranch %69 |
| %69 = OpLabel |
| OpBranch %46 |
| %46 = OpLabel |
| OpBranch %44 |
| %45 = OpLabel |
| OpBranch %86 |
| %86 = OpLabel |
| OpLoopMerge %87 %88 None |
| OpBranch %89 |
| %89 = OpLabel |
| %90 = OpLoad %int %i |
| %91 = OpLoad %int %i |
| %93 = OpLoad %int %mid |
| %95 = OpSLessThan %bool %90 %int_10 |
| %96 = OpSLessThanEqual %bool %91 %93 |
| %97 = OpLogicalAnd %bool %95 %96 |
| OpSelectionMerge %98 None |
| OpBranchConditional %97 %99 %100 |
| %99 = OpLabel |
| OpBranch %98 |
| %100 = OpLabel |
| OpBranch %87 |
| %98 = OpLabel |
| %101 = OpLoad %int %k |
| %102 = OpIAdd %int %101 %int_1 |
| OpStore %k %102 |
| %103 = OpLoad %int %i |
| %104 = OpIAdd %int %103 %int_1 |
| OpStore %i %104 |
| %105 = OpAccessChain %_ptr_Private_int %data %103 |
| %106 = OpLoad %int %105 |
| %107 = OpAccessChain %_ptr_Private_int %temp %101 |
| OpStore %107 %106 |
| OpBranch %88 |
| %88 = OpLabel |
| OpBranch %86 |
| %87 = OpLabel |
| %109 = OpLoad %int %from |
| OpStore %i_1 %109 |
| OpBranch %110 |
| %110 = OpLabel |
| OpLoopMerge %111 %112 None |
| OpBranch %113 |
| %113 = OpLabel |
| %114 = OpLoad %int %i_1 |
| %116 = OpLoad %int %to |
| %117 = OpSLessThanEqual %bool %114 %116 |
| OpSelectionMerge %118 None |
| OpBranchConditional %117 %119 %120 |
| %119 = OpLabel |
| OpBranch %118 |
| %120 = OpLabel |
| OpBranch %111 |
| %118 = OpLabel |
| %121 = OpLoad %int %i_1 |
| %122 = OpLoad %int %i_1 |
| %123 = OpAccessChain %_ptr_Private_int %temp %122 |
| %124 = OpLoad %int %123 |
| %125 = OpAccessChain %_ptr_Private_int %data %121 |
| OpStore %125 %124 |
| OpBranch %112 |
| %112 = OpLabel |
| %126 = OpLoad %int %i_1 |
| %127 = OpIAdd %int %126 %int_1 |
| OpStore %i_1 %127 |
| OpBranch %110 |
| %111 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %mergeSort_ = OpFunction %void None %128 |
| %130 = OpLabel |
| %low = OpVariable %_ptr_Function_int Function %32 |
| %high = OpVariable %_ptr_Function_int Function %32 |
| %m = OpVariable %_ptr_Function_int Function %32 |
| %i_2 = OpVariable %_ptr_Function_int Function %32 |
| %from_1 = OpVariable %_ptr_Function_int Function %32 |
| %mid_1 = OpVariable %_ptr_Function_int Function %32 |
| %to_1 = OpVariable %_ptr_Function_int Function %32 |
| %param = OpVariable %_ptr_Function_int Function %32 |
| %param_1 = OpVariable %_ptr_Function_int Function %32 |
| %param_2 = OpVariable %_ptr_Function_int Function %32 |
| OpStore %low %int_0 |
| OpStore %high %int_9 |
| OpStore %m %int_1 |
| OpBranch %143 |
| %143 = OpLabel |
| OpLoopMerge %144 %145 None |
| OpBranch %146 |
| %146 = OpLabel |
| %147 = OpLoad %int %m |
| %148 = OpLoad %int %high |
| %149 = OpSLessThanEqual %bool %147 %148 |
| OpSelectionMerge %150 None |
| OpBranchConditional %149 %151 %152 |
| %151 = OpLabel |
| OpBranch %150 |
| %152 = OpLabel |
| OpBranch %144 |
| %150 = OpLabel |
| %153 = OpLoad %int %low |
| OpStore %i_2 %153 |
| OpBranch %154 |
| %154 = OpLabel |
| OpLoopMerge %155 %156 None |
| OpBranch %157 |
| %157 = OpLabel |
| %158 = OpLoad %int %i_2 |
| %159 = OpLoad %int %high |
| %160 = OpSLessThan %bool %158 %159 |
| OpSelectionMerge %161 None |
| OpBranchConditional %160 %162 %163 |
| %162 = OpLabel |
| OpBranch %161 |
| %163 = OpLabel |
| OpBranch %155 |
| %161 = OpLabel |
| %164 = OpLoad %int %i_2 |
| OpStore %from_1 %164 |
| %165 = OpLoad %int %i_2 |
| %166 = OpLoad %int %m |
| %167 = OpIAdd %int %165 %166 |
| %168 = OpISub %int %167 %int_1 |
| OpStore %mid_1 %168 |
| %169 = OpLoad %int %i_2 |
| %170 = OpLoad %int %m |
| %171 = OpLoad %int %high |
| %175 = OpIMul %int %int_2 %170 |
| %176 = OpIAdd %int %169 %175 |
| %177 = OpISub %int %176 %int_1 |
| %172 = OpExtInst %int %173 SMin %177 %171 |
| OpStore %to_1 %172 |
| %178 = OpLoad %int %from_1 |
| OpStore %param %178 |
| %179 = OpLoad %int %mid_1 |
| OpStore %param_1 %179 |
| %180 = OpLoad %int %to_1 |
| OpStore %param_2 %180 |
| %181 = OpFunctionCall %void %merge_i1_i1_i1_ %param %param_1 %param_2 |
| OpBranch %156 |
| %156 = OpLabel |
| %185 = OpLoad %int %m |
| %186 = OpLoad %int %i_2 |
| %187 = OpIMul %int %int_2 %185 |
| %188 = OpIAdd %int %186 %187 |
| OpStore %i_2 %188 |
| OpBranch %154 |
| %155 = OpLabel |
| OpBranch %145 |
| %145 = OpLabel |
| %189 = OpLoad %int %m |
| %190 = OpIMul %int %int_2 %189 |
| OpStore %m %190 |
| OpBranch %143 |
| %144 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main_1 = OpFunction %void None %128 |
| %192 = OpLabel |
| %i_3 = OpVariable %_ptr_Function_int Function %32 |
| %j_1 = OpVariable %_ptr_Function_int Function %32 |
| %grey = OpVariable %_ptr_Function_float Function %197 |
| %200 = OpAccessChain %_ptr_Uniform_float %x_28 %uint_0 %uint_0 |
| %201 = OpLoad %float %200 |
| %202 = OpConvertFToS %int %201 |
| OpStore %i_3 %202 |
| OpBranch %203 |
| %203 = OpLabel |
| OpLoopMerge %204 %205 None |
| OpBranch %206 |
| %206 = OpLabel |
| %207 = OpLoad %int %i_3 |
| OpSelectionMerge %208 None |
| OpSwitch %207 %209 9 %210 8 %211 7 %212 6 %213 5 %214 4 %215 3 %216 2 %217 1 %218 0 %219 |
| %210 = OpLabel |
| %220 = OpLoad %int %i_3 |
| %221 = OpAccessChain %_ptr_Private_int %data %220 |
| OpStore %221 %int_n5 |
| OpBranch %208 |
| %211 = OpLabel |
| %223 = OpLoad %int %i_3 |
| %224 = OpAccessChain %_ptr_Private_int %data %223 |
| OpStore %224 %int_n4 |
| OpBranch %208 |
| %212 = OpLabel |
| %226 = OpLoad %int %i_3 |
| %227 = OpAccessChain %_ptr_Private_int %data %226 |
| OpStore %227 %int_n3 |
| OpBranch %208 |
| %213 = OpLabel |
| %229 = OpLoad %int %i_3 |
| %230 = OpAccessChain %_ptr_Private_int %data %229 |
| OpStore %230 %int_n2 |
| OpBranch %208 |
| %214 = OpLabel |
| %232 = OpLoad %int %i_3 |
| %233 = OpAccessChain %_ptr_Private_int %data %232 |
| OpStore %233 %int_n1 |
| OpBranch %208 |
| %215 = OpLabel |
| %235 = OpLoad %int %i_3 |
| %236 = OpAccessChain %_ptr_Private_int %data %235 |
| OpStore %236 %int_0 |
| OpBranch %208 |
| %216 = OpLabel |
| %237 = OpLoad %int %i_3 |
| %238 = OpAccessChain %_ptr_Private_int %data %237 |
| OpStore %238 %int_1 |
| OpBranch %208 |
| %217 = OpLabel |
| %239 = OpLoad %int %i_3 |
| %240 = OpAccessChain %_ptr_Private_int %data %239 |
| OpStore %240 %int_2 |
| OpBranch %208 |
| %218 = OpLabel |
| %241 = OpLoad %int %i_3 |
| %242 = OpAccessChain %_ptr_Private_int %data %241 |
| OpStore %242 %int_3 |
| OpBranch %208 |
| %219 = OpLabel |
| %244 = OpLoad %int %i_3 |
| %245 = OpAccessChain %_ptr_Private_int %data %244 |
| OpStore %245 %int_4 |
| OpBranch %208 |
| %209 = OpLabel |
| OpBranch %208 |
| %208 = OpLabel |
| %247 = OpLoad %int %i_3 |
| %248 = OpIAdd %int %247 %int_1 |
| OpStore %i_3 %248 |
| OpBranch %205 |
| %205 = OpLabel |
| %249 = OpLoad %int %i_3 |
| %250 = OpSLessThan %bool %249 %int_10 |
| OpBranchConditional %250 %203 %204 |
| %204 = OpLabel |
| OpStore %j_1 %int_0 |
| OpBranch %251 |
| %251 = OpLabel |
| OpLoopMerge %252 %253 None |
| OpBranch %254 |
| %254 = OpLabel |
| %255 = OpLoad %int %j_1 |
| %256 = OpSLessThan %bool %255 %int_10 |
| OpSelectionMerge %257 None |
| OpBranchConditional %256 %258 %259 |
| %258 = OpLabel |
| OpBranch %257 |
| %259 = OpLabel |
| OpBranch %252 |
| %257 = OpLabel |
| %260 = OpLoad %int %j_1 |
| %261 = OpLoad %int %j_1 |
| %262 = OpAccessChain %_ptr_Private_int %data %261 |
| %263 = OpLoad %int %262 |
| %264 = OpAccessChain %_ptr_Private_int %temp %260 |
| OpStore %264 %263 |
| OpBranch %253 |
| %253 = OpLabel |
| %265 = OpLoad %int %j_1 |
| %266 = OpIAdd %int %265 %int_1 |
| OpStore %j_1 %266 |
| OpBranch %251 |
| %252 = OpLabel |
| %267 = OpFunctionCall %void %mergeSort_ |
| %270 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %271 = OpLoad %float %270 |
| %272 = OpConvertFToS %int %271 |
| %274 = OpSLessThan %bool %272 %int_30 |
| OpSelectionMerge %275 None |
| OpBranchConditional %274 %276 %277 |
| %276 = OpLabel |
| %278 = OpAccessChain %_ptr_Private_int %data %int_0 |
| %279 = OpLoad %int %278 |
| %281 = OpConvertSToF %float %279 |
| %283 = OpFDiv %float %281 %float_10 |
| %284 = OpFAdd %float %float_0_5 %283 |
| OpStore %grey %284 |
| OpBranch %275 |
| %277 = OpLabel |
| %285 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %286 = OpLoad %float %285 |
| %287 = OpConvertFToS %int %286 |
| %289 = OpSLessThan %bool %287 %int_60 |
| OpSelectionMerge %290 None |
| OpBranchConditional %289 %291 %292 |
| %291 = OpLabel |
| %293 = OpAccessChain %_ptr_Private_int %data %int_1 |
| %294 = OpLoad %int %293 |
| %295 = OpConvertSToF %float %294 |
| %296 = OpFDiv %float %295 %float_10 |
| %297 = OpFAdd %float %float_0_5 %296 |
| OpStore %grey %297 |
| OpBranch %290 |
| %292 = OpLabel |
| %298 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %299 = OpLoad %float %298 |
| %300 = OpConvertFToS %int %299 |
| %302 = OpSLessThan %bool %300 %int_90 |
| OpSelectionMerge %303 None |
| OpBranchConditional %302 %304 %305 |
| %304 = OpLabel |
| %306 = OpAccessChain %_ptr_Private_int %data %int_2 |
| %307 = OpLoad %int %306 |
| %308 = OpConvertSToF %float %307 |
| %309 = OpFDiv %float %308 %float_10 |
| %310 = OpFAdd %float %float_0_5 %309 |
| OpStore %grey %310 |
| OpBranch %303 |
| %305 = OpLabel |
| %311 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %312 = OpLoad %float %311 |
| %313 = OpConvertFToS %int %312 |
| %315 = OpSLessThan %bool %313 %int_120 |
| OpSelectionMerge %316 None |
| OpBranchConditional %315 %317 %318 |
| %317 = OpLabel |
| %319 = OpAccessChain %_ptr_Private_int %data %int_3 |
| %320 = OpLoad %int %319 |
| %321 = OpConvertSToF %float %320 |
| %322 = OpFDiv %float %321 %float_10 |
| %323 = OpFAdd %float %float_0_5 %322 |
| OpStore %grey %323 |
| OpBranch %316 |
| %318 = OpLabel |
| %324 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %325 = OpLoad %float %324 |
| %326 = OpConvertFToS %int %325 |
| %328 = OpSLessThan %bool %326 %int_150 |
| OpSelectionMerge %329 None |
| OpBranchConditional %328 %330 %331 |
| %330 = OpLabel |
| OpKill |
| %331 = OpLabel |
| %332 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %333 = OpLoad %float %332 |
| %334 = OpConvertFToS %int %333 |
| %336 = OpSLessThan %bool %334 %int_180 |
| OpSelectionMerge %337 None |
| OpBranchConditional %336 %338 %339 |
| %338 = OpLabel |
| %341 = OpAccessChain %_ptr_Private_int %data %int_5 |
| %342 = OpLoad %int %341 |
| %343 = OpConvertSToF %float %342 |
| %344 = OpFDiv %float %343 %float_10 |
| %345 = OpFAdd %float %float_0_5 %344 |
| OpStore %grey %345 |
| OpBranch %337 |
| %339 = OpLabel |
| %346 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %347 = OpLoad %float %346 |
| %348 = OpConvertFToS %int %347 |
| %350 = OpSLessThan %bool %348 %int_210 |
| OpSelectionMerge %351 None |
| OpBranchConditional %350 %352 %353 |
| %352 = OpLabel |
| %355 = OpAccessChain %_ptr_Private_int %data %int_6 |
| %356 = OpLoad %int %355 |
| %357 = OpConvertSToF %float %356 |
| %358 = OpFDiv %float %357 %float_10 |
| %359 = OpFAdd %float %float_0_5 %358 |
| OpStore %grey %359 |
| OpBranch %351 |
| %353 = OpLabel |
| %360 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %361 = OpLoad %float %360 |
| %362 = OpConvertFToS %int %361 |
| %364 = OpSLessThan %bool %362 %int_240 |
| OpSelectionMerge %365 None |
| OpBranchConditional %364 %366 %367 |
| %366 = OpLabel |
| %369 = OpAccessChain %_ptr_Private_int %data %int_7 |
| %370 = OpLoad %int %369 |
| %371 = OpConvertSToF %float %370 |
| %372 = OpFDiv %float %371 %float_10 |
| %373 = OpFAdd %float %float_0_5 %372 |
| OpStore %grey %373 |
| OpBranch %365 |
| %367 = OpLabel |
| %374 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1 |
| %375 = OpLoad %float %374 |
| %376 = OpConvertFToS %int %375 |
| %378 = OpSLessThan %bool %376 %int_270 |
| OpSelectionMerge %379 None |
| OpBranchConditional %378 %380 %381 |
| %380 = OpLabel |
| %383 = OpAccessChain %_ptr_Private_int %data %int_8 |
| %384 = OpLoad %int %383 |
| %385 = OpConvertSToF %float %384 |
| %386 = OpFDiv %float %385 %float_10 |
| %387 = OpFAdd %float %float_0_5 %386 |
| OpStore %grey %387 |
| OpBranch %379 |
| %381 = OpLabel |
| OpKill |
| %379 = OpLabel |
| OpBranch %365 |
| %365 = OpLabel |
| OpBranch %351 |
| %351 = OpLabel |
| OpBranch %337 |
| %337 = OpLabel |
| OpBranch %329 |
| %329 = OpLabel |
| OpBranch %316 |
| %316 = OpLabel |
| OpBranch %303 |
| %303 = OpLabel |
| OpBranch %290 |
| %290 = OpLabel |
| OpBranch %275 |
| %275 = OpLabel |
| %388 = OpLoad %float %grey |
| %390 = OpCompositeConstruct %v3float %388 %388 %388 |
| %391 = OpCompositeExtract %float %390 0 |
| %392 = OpCompositeExtract %float %390 1 |
| %393 = OpCompositeExtract %float %390 2 |
| %395 = OpCompositeConstruct %v4float %391 %392 %393 %float_1 |
| OpStore %x_GLF_color %395 |
| OpReturn |
| OpFunctionEnd |
| %tint_symbol_3 = OpFunction %void None %396 |
| %tint_symbol_1 = OpFunctionParameter %main_out |
| %400 = OpLabel |
| %401 = OpCompositeExtract %v4float %tint_symbol_1 0 |
| OpStore %tint_symbol_2 %401 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %128 |
| %403 = OpLabel |
| %404 = OpLoad %v4float %tint_symbol |
| OpStore %gl_FragCoord %404 |
| %405 = OpFunctionCall %void %main_1 |
| %407 = OpLoad %v4float %x_GLF_color |
| %408 = OpCompositeConstruct %main_out %407 |
| %406 = OpFunctionCall %void %tint_symbol_3 %408 |
| OpReturn |
| OpFunctionEnd |