blob: 238e1fc19f5424661b90347a3e1adb07bbb500fc [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 456
; Schema: 0
OpCapability Shader
%170 = 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 %gl_FragCoord "gl_FragCoord"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %x_34 "x_34"
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 %func_i1_i1_ "func_i1_i1_"
OpName %m "m"
OpName %high "high"
OpName %x "x"
OpName %x_335 "x_335"
OpName %x_336 "x_336"
OpName %mergeSort_ "mergeSort_"
OpName %low "low"
OpName %high_1 "high_1"
OpName %m_1 "m_1"
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 %param_3 "param_3"
OpName %param_4 "param_4"
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_34 NonWritable
OpDecorate %x_34 DescriptorSet 0
OpDecorate %x_34 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
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%13 = OpConstantNull %v4float
%gl_FragCoord = OpVariable %_ptr_Private_v4float Private %13
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_34 = OpVariable %_ptr_Uniform_buf0 Uniform
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %13
%_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 %13
%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 %int %_ptr_Function_int %_ptr_Function_int
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%float_0 = OpConstant %float 0
%false = OpConstantFalse %bool
%int_0 = OpConstant %int 0
%int_4 = OpConstant %int 4
%int_2 = OpConstant %int 2
%176 = OpTypeFunction %void
%int_9 = OpConstant %int 9
%_ptr_Function_float = OpTypePointer Function %float
%247 = OpConstantNull %float
%_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
%uint_1 = OpConstant %uint 1
%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
%443 = 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
%func_i1_i1_ = OpFunction %int None %128
%m = OpFunctionParameter %_ptr_Function_int
%high = OpFunctionParameter %_ptr_Function_int
%132 = OpLabel
%x = OpVariable %_ptr_Function_int Function %32
%x_335 = OpVariable %_ptr_Function_int Function %32
%x_336 = OpVariable %_ptr_Function_int Function %32
%138 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
%139 = OpLoad %float %138
%141 = OpFOrdGreaterThanEqual %bool %139 %float_0
OpSelectionMerge %142 None
OpBranchConditional %141 %143 %144
%143 = OpLabel
OpSelectionMerge %146 None
OpBranchConditional %false %147 %148
%147 = OpLabel
%150 = OpLoad %int %high
%151 = OpBitcast %uint %int_0
%153 = OpShiftLeftLogical %int %150 %151
OpStore %x_336 %153
OpBranch %146
%148 = OpLabel
OpStore %x_336 %int_4
OpBranch %146
%146 = OpLabel
%155 = OpLoad %int %x_336
%156 = OpBitcast %uint %155
%157 = OpShiftLeftLogical %int %int_1 %156
OpStore %x_335 %157
OpBranch %142
%144 = OpLabel
OpStore %x_335 %int_1
OpBranch %142
%142 = OpLabel
%158 = OpLoad %int %x_335
OpStore %x %158
%159 = OpLoad %int %x
%160 = OpBitcast %uint %int_4
%161 = OpShiftRightArithmetic %int %159 %160
OpStore %x %161
%163 = OpLoad %int %m
%165 = OpLoad %int %m
%167 = OpLoad %int %m
%168 = OpLoad %int %x
%172 = OpIMul %int %int_2 %163
%173 = OpIMul %int %int_2 %165
%174 = OpIMul %int %int_2 %167
%175 = OpSDiv %int %174 %168
%169 = OpExtInst %int %170 SClamp %172 %173 %175
OpReturnValue %169
OpFunctionEnd
%mergeSort_ = OpFunction %void None %176
%178 = OpLabel
%low = OpVariable %_ptr_Function_int Function %32
%high_1 = OpVariable %_ptr_Function_int Function %32
%m_1 = 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
%param_3 = OpVariable %_ptr_Function_int Function %32
%param_4 = OpVariable %_ptr_Function_int Function %32
OpStore %low %int_0
OpStore %high_1 %int_9
OpStore %m_1 %int_1
OpBranch %192
%192 = OpLabel
OpLoopMerge %193 %194 None
OpBranch %195
%195 = OpLabel
%196 = OpLoad %int %m_1
%197 = OpLoad %int %high_1
%198 = OpSLessThanEqual %bool %196 %197
OpSelectionMerge %199 None
OpBranchConditional %198 %200 %201
%200 = OpLabel
OpBranch %199
%201 = OpLabel
OpBranch %193
%199 = OpLabel
%202 = OpLoad %int %low
OpStore %i_2 %202
OpBranch %203
%203 = OpLabel
OpLoopMerge %204 %205 None
OpBranch %206
%206 = OpLabel
%207 = OpLoad %int %i_2
%208 = OpLoad %int %high_1
%209 = OpSLessThan %bool %207 %208
OpSelectionMerge %210 None
OpBranchConditional %209 %211 %212
%211 = OpLabel
OpBranch %210
%212 = OpLabel
OpBranch %204
%210 = OpLabel
%213 = OpLoad %int %i_2
OpStore %from_1 %213
%214 = OpLoad %int %i_2
%215 = OpLoad %int %m_1
%216 = OpIAdd %int %214 %215
%217 = OpISub %int %216 %int_1
OpStore %mid_1 %217
%218 = OpLoad %int %i_2
%219 = OpLoad %int %m_1
%220 = OpLoad %int %high_1
%222 = OpIMul %int %int_2 %219
%223 = OpIAdd %int %218 %222
%224 = OpISub %int %223 %int_1
%221 = OpExtInst %int %170 SMin %224 %220
OpStore %to_1 %221
%225 = OpLoad %int %from_1
OpStore %param %225
%226 = OpLoad %int %mid_1
OpStore %param_1 %226
%227 = OpLoad %int %to_1
OpStore %param_2 %227
%228 = OpFunctionCall %void %merge_i1_i1_i1_ %param %param_1 %param_2
OpBranch %205
%205 = OpLabel
%232 = OpLoad %int %m_1
OpStore %param_3 %232
%233 = OpLoad %int %high_1
OpStore %param_4 %233
%234 = OpFunctionCall %int %func_i1_i1_ %param_3 %param_4
%237 = OpLoad %int %i_2
%238 = OpIAdd %int %237 %234
OpStore %i_2 %238
OpBranch %203
%204 = OpLabel
OpBranch %194
%194 = OpLabel
%239 = OpLoad %int %m_1
%240 = OpIMul %int %int_2 %239
OpStore %m_1 %240
OpBranch %192
%193 = OpLabel
OpReturn
OpFunctionEnd
%main_1 = OpFunction %void None %176
%242 = OpLabel
%i_3 = OpVariable %_ptr_Function_int Function %32
%j_1 = OpVariable %_ptr_Function_int Function %32
%grey = OpVariable %_ptr_Function_float Function %247
%249 = OpAccessChain %_ptr_Uniform_float %x_34 %uint_0 %uint_0
%250 = OpLoad %float %249
%251 = OpConvertFToS %int %250
OpStore %i_3 %251
OpBranch %252
%252 = OpLabel
OpLoopMerge %253 %254 None
OpBranch %255
%255 = OpLabel
%256 = OpLoad %int %i_3
OpSelectionMerge %257 None
OpSwitch %256 %258 9 %259 8 %260 7 %261 6 %262 5 %263 4 %264 3 %265 2 %266 1 %267 0 %268
%259 = OpLabel
%269 = OpLoad %int %i_3
%270 = OpAccessChain %_ptr_Private_int %data %269
OpStore %270 %int_n5
OpBranch %257
%260 = OpLabel
%272 = OpLoad %int %i_3
%273 = OpAccessChain %_ptr_Private_int %data %272
OpStore %273 %int_n4
OpBranch %257
%261 = OpLabel
%275 = OpLoad %int %i_3
%276 = OpAccessChain %_ptr_Private_int %data %275
OpStore %276 %int_n3
OpBranch %257
%262 = OpLabel
%278 = OpLoad %int %i_3
%279 = OpAccessChain %_ptr_Private_int %data %278
OpStore %279 %int_n2
OpBranch %257
%263 = OpLabel
%281 = OpLoad %int %i_3
%282 = OpAccessChain %_ptr_Private_int %data %281
OpStore %282 %int_n1
OpBranch %257
%264 = OpLabel
%284 = OpLoad %int %i_3
%285 = OpAccessChain %_ptr_Private_int %data %284
OpStore %285 %int_0
OpBranch %257
%265 = OpLabel
%286 = OpLoad %int %i_3
%287 = OpAccessChain %_ptr_Private_int %data %286
OpStore %287 %int_1
OpBranch %257
%266 = OpLabel
%288 = OpLoad %int %i_3
%289 = OpAccessChain %_ptr_Private_int %data %288
OpStore %289 %int_2
OpBranch %257
%267 = OpLabel
%290 = OpLoad %int %i_3
%291 = OpAccessChain %_ptr_Private_int %data %290
OpStore %291 %int_3
OpBranch %257
%268 = OpLabel
%293 = OpLoad %int %i_3
%294 = OpAccessChain %_ptr_Private_int %data %293
OpStore %294 %int_4
OpBranch %257
%258 = OpLabel
OpBranch %257
%257 = OpLabel
%295 = OpLoad %int %i_3
%296 = OpIAdd %int %295 %int_1
OpStore %i_3 %296
OpBranch %254
%254 = OpLabel
%297 = OpLoad %int %i_3
%298 = OpSLessThan %bool %297 %int_10
OpBranchConditional %298 %252 %253
%253 = OpLabel
OpStore %j_1 %int_0
OpBranch %299
%299 = OpLabel
OpLoopMerge %300 %301 None
OpBranch %302
%302 = OpLabel
%303 = OpLoad %int %j_1
%304 = OpSLessThan %bool %303 %int_10
OpSelectionMerge %305 None
OpBranchConditional %304 %306 %307
%306 = OpLabel
OpBranch %305
%307 = OpLabel
OpBranch %300
%305 = OpLabel
%308 = OpLoad %int %j_1
%309 = OpLoad %int %j_1
%310 = OpAccessChain %_ptr_Private_int %data %309
%311 = OpLoad %int %310
%312 = OpAccessChain %_ptr_Private_int %temp %308
OpStore %312 %311
OpBranch %301
%301 = OpLabel
%313 = OpLoad %int %j_1
%314 = OpIAdd %int %313 %int_1
OpStore %j_1 %314
OpBranch %299
%300 = OpLabel
%315 = OpFunctionCall %void %mergeSort_
%317 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%318 = OpLoad %float %317
%319 = OpConvertFToS %int %318
%321 = OpSLessThan %bool %319 %int_30
OpSelectionMerge %322 None
OpBranchConditional %321 %323 %324
%323 = OpLabel
%325 = OpAccessChain %_ptr_Private_int %data %int_0
%326 = OpLoad %int %325
%328 = OpConvertSToF %float %326
%330 = OpFDiv %float %328 %float_10
%331 = OpFAdd %float %float_0_5 %330
OpStore %grey %331
OpBranch %322
%324 = OpLabel
%332 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%333 = OpLoad %float %332
%334 = OpConvertFToS %int %333
%336 = OpSLessThan %bool %334 %int_60
OpSelectionMerge %337 None
OpBranchConditional %336 %338 %339
%338 = OpLabel
%340 = OpAccessChain %_ptr_Private_int %data %int_1
%341 = OpLoad %int %340
%342 = OpConvertSToF %float %341
%343 = OpFDiv %float %342 %float_10
%344 = OpFAdd %float %float_0_5 %343
OpStore %grey %344
OpBranch %337
%339 = OpLabel
%345 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%346 = OpLoad %float %345
%347 = OpConvertFToS %int %346
%349 = OpSLessThan %bool %347 %int_90
OpSelectionMerge %350 None
OpBranchConditional %349 %351 %352
%351 = OpLabel
%353 = OpAccessChain %_ptr_Private_int %data %int_2
%354 = OpLoad %int %353
%355 = OpConvertSToF %float %354
%356 = OpFDiv %float %355 %float_10
%357 = OpFAdd %float %float_0_5 %356
OpStore %grey %357
OpBranch %350
%352 = OpLabel
%358 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%359 = OpLoad %float %358
%360 = OpConvertFToS %int %359
%362 = OpSLessThan %bool %360 %int_120
OpSelectionMerge %363 None
OpBranchConditional %362 %364 %365
%364 = OpLabel
%366 = OpAccessChain %_ptr_Private_int %data %int_3
%367 = OpLoad %int %366
%368 = OpConvertSToF %float %367
%369 = OpFDiv %float %368 %float_10
%370 = OpFAdd %float %float_0_5 %369
OpStore %grey %370
OpBranch %363
%365 = OpLabel
%371 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%372 = OpLoad %float %371
%373 = OpConvertFToS %int %372
%375 = OpSLessThan %bool %373 %int_150
OpSelectionMerge %376 None
OpBranchConditional %375 %377 %378
%377 = OpLabel
OpKill
%378 = OpLabel
%379 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%380 = OpLoad %float %379
%381 = OpConvertFToS %int %380
%383 = OpSLessThan %bool %381 %int_180
OpSelectionMerge %384 None
OpBranchConditional %383 %385 %386
%385 = OpLabel
%388 = OpAccessChain %_ptr_Private_int %data %int_5
%389 = OpLoad %int %388
%390 = OpConvertSToF %float %389
%391 = OpFDiv %float %390 %float_10
%392 = OpFAdd %float %float_0_5 %391
OpStore %grey %392
OpBranch %384
%386 = OpLabel
%393 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%394 = OpLoad %float %393
%395 = OpConvertFToS %int %394
%397 = OpSLessThan %bool %395 %int_210
OpSelectionMerge %398 None
OpBranchConditional %397 %399 %400
%399 = OpLabel
%402 = OpAccessChain %_ptr_Private_int %data %int_6
%403 = OpLoad %int %402
%404 = OpConvertSToF %float %403
%405 = OpFDiv %float %404 %float_10
%406 = OpFAdd %float %float_0_5 %405
OpStore %grey %406
OpBranch %398
%400 = OpLabel
%407 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%408 = OpLoad %float %407
%409 = OpConvertFToS %int %408
%411 = OpSLessThan %bool %409 %int_240
OpSelectionMerge %412 None
OpBranchConditional %411 %413 %414
%413 = OpLabel
%416 = OpAccessChain %_ptr_Private_int %data %int_7
%417 = OpLoad %int %416
%418 = OpConvertSToF %float %417
%419 = OpFDiv %float %418 %float_10
%420 = OpFAdd %float %float_0_5 %419
OpStore %grey %420
OpBranch %412
%414 = OpLabel
%421 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%422 = OpLoad %float %421
%423 = OpConvertFToS %int %422
%425 = OpSLessThan %bool %423 %int_270
OpSelectionMerge %426 None
OpBranchConditional %425 %427 %428
%427 = OpLabel
%430 = OpAccessChain %_ptr_Private_int %data %int_8
%431 = OpLoad %int %430
%432 = OpConvertSToF %float %431
%433 = OpFDiv %float %432 %float_10
%434 = OpFAdd %float %float_0_5 %433
OpStore %grey %434
OpBranch %426
%428 = OpLabel
OpKill
%426 = OpLabel
OpBranch %412
%412 = OpLabel
OpBranch %398
%398 = OpLabel
OpBranch %384
%384 = OpLabel
OpBranch %376
%376 = OpLabel
OpBranch %363
%363 = OpLabel
OpBranch %350
%350 = OpLabel
OpBranch %337
%337 = OpLabel
OpBranch %322
%322 = OpLabel
%435 = OpLoad %float %grey
%437 = OpCompositeConstruct %v3float %435 %435 %435
%438 = OpCompositeExtract %float %437 0
%439 = OpCompositeExtract %float %437 1
%440 = OpCompositeExtract %float %437 2
%442 = OpCompositeConstruct %v4float %438 %439 %440 %float_1
OpStore %x_GLF_color %442
OpReturn
OpFunctionEnd
%tint_symbol_3 = OpFunction %void None %443
%tint_symbol_1 = OpFunctionParameter %main_out
%447 = OpLabel
%448 = OpCompositeExtract %v4float %tint_symbol_1 0
OpStore %tint_symbol_2 %448
OpReturn
OpFunctionEnd
%main = OpFunction %void None %176
%450 = OpLabel
%451 = OpLoad %v4float %tint_symbol
OpStore %gl_FragCoord %451
%452 = OpFunctionCall %void %main_1
%454 = OpLoad %v4float %x_GLF_color
%455 = OpCompositeConstruct %main_out %454
%453 = OpFunctionCall %void %tint_symbol_3 %455
OpReturn
OpFunctionEnd