blob: 023eb518a52a8c1436c9e6e742e44b69e86ee879 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 460
; Schema: 0
OpCapability Shader
%174 = 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
%132 = 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
%180 = OpTypeFunction %void
%int_9 = OpConstant %int 9
%_ptr_Function_float = OpTypePointer Function %float
%251 = 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
%447 = 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
OpSelectionMerge %56 None
OpBranchConditional %54 %57 %56
%57 = OpLabel
%58 = OpSLessThanEqual %bool %51 %53
OpBranch %56
%56 = OpLabel
%59 = OpPhi %bool %54 %47 %58 %57
OpSelectionMerge %60 None
OpBranchConditional %59 %61 %62
%61 = OpLabel
OpBranch %60
%62 = OpLabel
OpBranch %45
%60 = OpLabel
%63 = OpLoad %int %i
%65 = OpAccessChain %_ptr_Private_int %data %63
%66 = OpLoad %int %65
%67 = OpLoad %int %j
%68 = OpAccessChain %_ptr_Private_int %data %67
%69 = OpLoad %int %68
%70 = OpSLessThan %bool %66 %69
OpSelectionMerge %71 None
OpBranchConditional %70 %72 %73
%72 = OpLabel
%74 = OpLoad %int %k
%75 = OpIAdd %int %74 %int_1
OpStore %k %75
%76 = OpLoad %int %i
%77 = OpIAdd %int %76 %int_1
OpStore %i %77
%78 = OpAccessChain %_ptr_Private_int %data %76
%79 = OpLoad %int %78
%80 = OpAccessChain %_ptr_Private_int %temp %74
OpStore %80 %79
OpBranch %71
%73 = OpLabel
%81 = OpLoad %int %k
%82 = OpIAdd %int %81 %int_1
OpStore %k %82
%83 = OpLoad %int %j
%84 = OpIAdd %int %83 %int_1
OpStore %j %84
%85 = OpAccessChain %_ptr_Private_int %data %83
%86 = OpLoad %int %85
%87 = OpAccessChain %_ptr_Private_int %temp %81
OpStore %87 %86
OpBranch %71
%71 = OpLabel
OpBranch %46
%46 = OpLabel
OpBranch %44
%45 = OpLabel
OpBranch %88
%88 = OpLabel
OpLoopMerge %89 %90 None
OpBranch %91
%91 = OpLabel
%92 = OpLoad %int %i
%93 = OpLoad %int %i
%95 = OpLoad %int %mid
%97 = OpSLessThan %bool %92 %int_10
OpSelectionMerge %98 None
OpBranchConditional %97 %99 %98
%99 = OpLabel
%100 = OpSLessThanEqual %bool %93 %95
OpBranch %98
%98 = OpLabel
%101 = OpPhi %bool %97 %91 %100 %99
OpSelectionMerge %102 None
OpBranchConditional %101 %103 %104
%103 = OpLabel
OpBranch %102
%104 = OpLabel
OpBranch %89
%102 = OpLabel
%105 = OpLoad %int %k
%106 = OpIAdd %int %105 %int_1
OpStore %k %106
%107 = OpLoad %int %i
%108 = OpIAdd %int %107 %int_1
OpStore %i %108
%109 = OpAccessChain %_ptr_Private_int %data %107
%110 = OpLoad %int %109
%111 = OpAccessChain %_ptr_Private_int %temp %105
OpStore %111 %110
OpBranch %90
%90 = OpLabel
OpBranch %88
%89 = OpLabel
%113 = OpLoad %int %from
OpStore %i_1 %113
OpBranch %114
%114 = OpLabel
OpLoopMerge %115 %116 None
OpBranch %117
%117 = OpLabel
%118 = OpLoad %int %i_1
%120 = OpLoad %int %to
%121 = OpSLessThanEqual %bool %118 %120
OpSelectionMerge %122 None
OpBranchConditional %121 %123 %124
%123 = OpLabel
OpBranch %122
%124 = OpLabel
OpBranch %115
%122 = OpLabel
%125 = OpLoad %int %i_1
%126 = OpLoad %int %i_1
%127 = OpAccessChain %_ptr_Private_int %temp %126
%128 = OpLoad %int %127
%129 = OpAccessChain %_ptr_Private_int %data %125
OpStore %129 %128
OpBranch %116
%116 = OpLabel
%130 = OpLoad %int %i_1
%131 = OpIAdd %int %130 %int_1
OpStore %i_1 %131
OpBranch %114
%115 = OpLabel
OpReturn
OpFunctionEnd
%func_i1_i1_ = OpFunction %int None %132
%m = OpFunctionParameter %_ptr_Function_int
%high = OpFunctionParameter %_ptr_Function_int
%136 = OpLabel
%x = OpVariable %_ptr_Function_int Function %32
%x_335 = OpVariable %_ptr_Function_int Function %32
%x_336 = OpVariable %_ptr_Function_int Function %32
%142 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
%143 = OpLoad %float %142
%145 = OpFOrdGreaterThanEqual %bool %143 %float_0
OpSelectionMerge %146 None
OpBranchConditional %145 %147 %148
%147 = OpLabel
OpSelectionMerge %150 None
OpBranchConditional %false %151 %152
%151 = OpLabel
%154 = OpLoad %int %high
%155 = OpBitcast %uint %int_0
%157 = OpShiftLeftLogical %int %154 %155
OpStore %x_336 %157
OpBranch %150
%152 = OpLabel
OpStore %x_336 %int_4
OpBranch %150
%150 = OpLabel
%159 = OpLoad %int %x_336
%160 = OpBitcast %uint %159
%161 = OpShiftLeftLogical %int %int_1 %160
OpStore %x_335 %161
OpBranch %146
%148 = OpLabel
OpStore %x_335 %int_1
OpBranch %146
%146 = OpLabel
%162 = OpLoad %int %x_335
OpStore %x %162
%163 = OpLoad %int %x
%164 = OpBitcast %uint %int_4
%165 = OpShiftRightArithmetic %int %163 %164
OpStore %x %165
%167 = OpLoad %int %m
%169 = OpLoad %int %m
%171 = OpLoad %int %m
%172 = OpLoad %int %x
%176 = OpIMul %int %int_2 %167
%177 = OpIMul %int %int_2 %169
%178 = OpIMul %int %int_2 %171
%179 = OpSDiv %int %178 %172
%173 = OpExtInst %int %174 SClamp %176 %177 %179
OpReturnValue %173
OpFunctionEnd
%mergeSort_ = OpFunction %void None %180
%182 = 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 %196
%196 = OpLabel
OpLoopMerge %197 %198 None
OpBranch %199
%199 = OpLabel
%200 = OpLoad %int %m_1
%201 = OpLoad %int %high_1
%202 = OpSLessThanEqual %bool %200 %201
OpSelectionMerge %203 None
OpBranchConditional %202 %204 %205
%204 = OpLabel
OpBranch %203
%205 = OpLabel
OpBranch %197
%203 = OpLabel
%206 = OpLoad %int %low
OpStore %i_2 %206
OpBranch %207
%207 = OpLabel
OpLoopMerge %208 %209 None
OpBranch %210
%210 = OpLabel
%211 = OpLoad %int %i_2
%212 = OpLoad %int %high_1
%213 = OpSLessThan %bool %211 %212
OpSelectionMerge %214 None
OpBranchConditional %213 %215 %216
%215 = OpLabel
OpBranch %214
%216 = OpLabel
OpBranch %208
%214 = OpLabel
%217 = OpLoad %int %i_2
OpStore %from_1 %217
%218 = OpLoad %int %i_2
%219 = OpLoad %int %m_1
%220 = OpIAdd %int %218 %219
%221 = OpISub %int %220 %int_1
OpStore %mid_1 %221
%222 = OpLoad %int %i_2
%223 = OpLoad %int %m_1
%224 = OpLoad %int %high_1
%226 = OpIMul %int %int_2 %223
%227 = OpIAdd %int %222 %226
%228 = OpISub %int %227 %int_1
%225 = OpExtInst %int %174 SMin %228 %224
OpStore %to_1 %225
%229 = OpLoad %int %from_1
OpStore %param %229
%230 = OpLoad %int %mid_1
OpStore %param_1 %230
%231 = OpLoad %int %to_1
OpStore %param_2 %231
%232 = OpFunctionCall %void %merge_i1_i1_i1_ %param %param_1 %param_2
OpBranch %209
%209 = OpLabel
%236 = OpLoad %int %m_1
OpStore %param_3 %236
%237 = OpLoad %int %high_1
OpStore %param_4 %237
%238 = OpFunctionCall %int %func_i1_i1_ %param_3 %param_4
%241 = OpLoad %int %i_2
%242 = OpIAdd %int %241 %238
OpStore %i_2 %242
OpBranch %207
%208 = OpLabel
OpBranch %198
%198 = OpLabel
%243 = OpLoad %int %m_1
%244 = OpIMul %int %int_2 %243
OpStore %m_1 %244
OpBranch %196
%197 = OpLabel
OpReturn
OpFunctionEnd
%main_1 = OpFunction %void None %180
%246 = OpLabel
%i_3 = OpVariable %_ptr_Function_int Function %32
%j_1 = OpVariable %_ptr_Function_int Function %32
%grey = OpVariable %_ptr_Function_float Function %251
%253 = OpAccessChain %_ptr_Uniform_float %x_34 %uint_0 %uint_0
%254 = OpLoad %float %253
%255 = OpConvertFToS %int %254
OpStore %i_3 %255
OpBranch %256
%256 = OpLabel
OpLoopMerge %257 %258 None
OpBranch %259
%259 = OpLabel
%260 = OpLoad %int %i_3
OpSelectionMerge %261 None
OpSwitch %260 %262 9 %263 8 %264 7 %265 6 %266 5 %267 4 %268 3 %269 2 %270 1 %271 0 %272
%263 = OpLabel
%273 = OpLoad %int %i_3
%274 = OpAccessChain %_ptr_Private_int %data %273
OpStore %274 %int_n5
OpBranch %261
%264 = OpLabel
%276 = OpLoad %int %i_3
%277 = OpAccessChain %_ptr_Private_int %data %276
OpStore %277 %int_n4
OpBranch %261
%265 = OpLabel
%279 = OpLoad %int %i_3
%280 = OpAccessChain %_ptr_Private_int %data %279
OpStore %280 %int_n3
OpBranch %261
%266 = OpLabel
%282 = OpLoad %int %i_3
%283 = OpAccessChain %_ptr_Private_int %data %282
OpStore %283 %int_n2
OpBranch %261
%267 = OpLabel
%285 = OpLoad %int %i_3
%286 = OpAccessChain %_ptr_Private_int %data %285
OpStore %286 %int_n1
OpBranch %261
%268 = OpLabel
%288 = OpLoad %int %i_3
%289 = OpAccessChain %_ptr_Private_int %data %288
OpStore %289 %int_0
OpBranch %261
%269 = OpLabel
%290 = OpLoad %int %i_3
%291 = OpAccessChain %_ptr_Private_int %data %290
OpStore %291 %int_1
OpBranch %261
%270 = OpLabel
%292 = OpLoad %int %i_3
%293 = OpAccessChain %_ptr_Private_int %data %292
OpStore %293 %int_2
OpBranch %261
%271 = OpLabel
%294 = OpLoad %int %i_3
%295 = OpAccessChain %_ptr_Private_int %data %294
OpStore %295 %int_3
OpBranch %261
%272 = OpLabel
%297 = OpLoad %int %i_3
%298 = OpAccessChain %_ptr_Private_int %data %297
OpStore %298 %int_4
OpBranch %261
%262 = OpLabel
OpBranch %261
%261 = OpLabel
%299 = OpLoad %int %i_3
%300 = OpIAdd %int %299 %int_1
OpStore %i_3 %300
OpBranch %258
%258 = OpLabel
%301 = OpLoad %int %i_3
%302 = OpSLessThan %bool %301 %int_10
OpBranchConditional %302 %256 %257
%257 = OpLabel
OpStore %j_1 %int_0
OpBranch %303
%303 = OpLabel
OpLoopMerge %304 %305 None
OpBranch %306
%306 = OpLabel
%307 = OpLoad %int %j_1
%308 = OpSLessThan %bool %307 %int_10
OpSelectionMerge %309 None
OpBranchConditional %308 %310 %311
%310 = OpLabel
OpBranch %309
%311 = OpLabel
OpBranch %304
%309 = OpLabel
%312 = OpLoad %int %j_1
%313 = OpLoad %int %j_1
%314 = OpAccessChain %_ptr_Private_int %data %313
%315 = OpLoad %int %314
%316 = OpAccessChain %_ptr_Private_int %temp %312
OpStore %316 %315
OpBranch %305
%305 = OpLabel
%317 = OpLoad %int %j_1
%318 = OpIAdd %int %317 %int_1
OpStore %j_1 %318
OpBranch %303
%304 = OpLabel
%319 = OpFunctionCall %void %mergeSort_
%321 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%322 = OpLoad %float %321
%323 = OpConvertFToS %int %322
%325 = OpSLessThan %bool %323 %int_30
OpSelectionMerge %326 None
OpBranchConditional %325 %327 %328
%327 = OpLabel
%329 = OpAccessChain %_ptr_Private_int %data %int_0
%330 = OpLoad %int %329
%332 = OpConvertSToF %float %330
%334 = OpFDiv %float %332 %float_10
%335 = OpFAdd %float %float_0_5 %334
OpStore %grey %335
OpBranch %326
%328 = OpLabel
%336 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%337 = OpLoad %float %336
%338 = OpConvertFToS %int %337
%340 = OpSLessThan %bool %338 %int_60
OpSelectionMerge %341 None
OpBranchConditional %340 %342 %343
%342 = OpLabel
%344 = OpAccessChain %_ptr_Private_int %data %int_1
%345 = OpLoad %int %344
%346 = OpConvertSToF %float %345
%347 = OpFDiv %float %346 %float_10
%348 = OpFAdd %float %float_0_5 %347
OpStore %grey %348
OpBranch %341
%343 = OpLabel
%349 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%350 = OpLoad %float %349
%351 = OpConvertFToS %int %350
%353 = OpSLessThan %bool %351 %int_90
OpSelectionMerge %354 None
OpBranchConditional %353 %355 %356
%355 = OpLabel
%357 = OpAccessChain %_ptr_Private_int %data %int_2
%358 = OpLoad %int %357
%359 = OpConvertSToF %float %358
%360 = OpFDiv %float %359 %float_10
%361 = OpFAdd %float %float_0_5 %360
OpStore %grey %361
OpBranch %354
%356 = OpLabel
%362 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%363 = OpLoad %float %362
%364 = OpConvertFToS %int %363
%366 = OpSLessThan %bool %364 %int_120
OpSelectionMerge %367 None
OpBranchConditional %366 %368 %369
%368 = OpLabel
%370 = OpAccessChain %_ptr_Private_int %data %int_3
%371 = OpLoad %int %370
%372 = OpConvertSToF %float %371
%373 = OpFDiv %float %372 %float_10
%374 = OpFAdd %float %float_0_5 %373
OpStore %grey %374
OpBranch %367
%369 = OpLabel
%375 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%376 = OpLoad %float %375
%377 = OpConvertFToS %int %376
%379 = OpSLessThan %bool %377 %int_150
OpSelectionMerge %380 None
OpBranchConditional %379 %381 %382
%381 = OpLabel
OpKill
%382 = OpLabel
%383 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%384 = OpLoad %float %383
%385 = OpConvertFToS %int %384
%387 = OpSLessThan %bool %385 %int_180
OpSelectionMerge %388 None
OpBranchConditional %387 %389 %390
%389 = OpLabel
%392 = OpAccessChain %_ptr_Private_int %data %int_5
%393 = OpLoad %int %392
%394 = OpConvertSToF %float %393
%395 = OpFDiv %float %394 %float_10
%396 = OpFAdd %float %float_0_5 %395
OpStore %grey %396
OpBranch %388
%390 = OpLabel
%397 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%398 = OpLoad %float %397
%399 = OpConvertFToS %int %398
%401 = OpSLessThan %bool %399 %int_210
OpSelectionMerge %402 None
OpBranchConditional %401 %403 %404
%403 = OpLabel
%406 = OpAccessChain %_ptr_Private_int %data %int_6
%407 = OpLoad %int %406
%408 = OpConvertSToF %float %407
%409 = OpFDiv %float %408 %float_10
%410 = OpFAdd %float %float_0_5 %409
OpStore %grey %410
OpBranch %402
%404 = OpLabel
%411 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%412 = OpLoad %float %411
%413 = OpConvertFToS %int %412
%415 = OpSLessThan %bool %413 %int_240
OpSelectionMerge %416 None
OpBranchConditional %415 %417 %418
%417 = OpLabel
%420 = OpAccessChain %_ptr_Private_int %data %int_7
%421 = OpLoad %int %420
%422 = OpConvertSToF %float %421
%423 = OpFDiv %float %422 %float_10
%424 = OpFAdd %float %float_0_5 %423
OpStore %grey %424
OpBranch %416
%418 = OpLabel
%425 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%426 = OpLoad %float %425
%427 = OpConvertFToS %int %426
%429 = OpSLessThan %bool %427 %int_270
OpSelectionMerge %430 None
OpBranchConditional %429 %431 %432
%431 = OpLabel
%434 = OpAccessChain %_ptr_Private_int %data %int_8
%435 = OpLoad %int %434
%436 = OpConvertSToF %float %435
%437 = OpFDiv %float %436 %float_10
%438 = OpFAdd %float %float_0_5 %437
OpStore %grey %438
OpBranch %430
%432 = OpLabel
OpKill
%430 = OpLabel
OpBranch %416
%416 = OpLabel
OpBranch %402
%402 = OpLabel
OpBranch %388
%388 = OpLabel
OpBranch %380
%380 = OpLabel
OpBranch %367
%367 = OpLabel
OpBranch %354
%354 = OpLabel
OpBranch %341
%341 = OpLabel
OpBranch %326
%326 = OpLabel
%439 = OpLoad %float %grey
%441 = OpCompositeConstruct %v3float %439 %439 %439
%442 = OpCompositeExtract %float %441 0
%443 = OpCompositeExtract %float %441 1
%444 = OpCompositeExtract %float %441 2
%446 = OpCompositeConstruct %v4float %442 %443 %444 %float_1
OpStore %x_GLF_color %446
OpReturn
OpFunctionEnd
%tint_symbol_3 = OpFunction %void None %447
%tint_symbol_1 = OpFunctionParameter %main_out
%451 = OpLabel
%452 = OpCompositeExtract %v4float %tint_symbol_1 0
OpStore %tint_symbol_2 %452
OpReturn
OpFunctionEnd
%main = OpFunction %void None %180
%454 = OpLabel
%455 = OpLoad %v4float %tint_symbol
OpStore %gl_FragCoord %455
%456 = OpFunctionCall %void %main_1
%458 = OpLoad %v4float %x_GLF_color
%459 = OpCompositeConstruct %main_out %458
%457 = OpFunctionCall %void %tint_symbol_3 %459
OpReturn
OpFunctionEnd