blob: 2f3113fde872d53e493391e0bae6aa09fcffe0fc [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 437
; Schema: 0
OpCapability Shader
%177 = 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 %guard233 "guard233"
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
%132 = OpTypeFunction %void
%int_0 = OpConstant %int 0
%int_9 = OpConstant %int 9
%int_2 = OpConstant %int 2
%_ptr_Function_float = OpTypePointer Function %float
%201 = 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
%float_1 = OpConstant %float 1
%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
%true = OpConstantTrue %bool
%_ptr_Function_bool = OpTypePointer Function %bool
%390 = OpConstantNull %bool
%int_270 = OpConstant %int 270
%int_8 = OpConstant %int 8
%false = OpConstantFalse %bool
%float_0 = OpConstant %float 0
%v3float = OpTypeVector %float 3
%main_out = OpTypeStruct %v4float
%424 = 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
%mergeSort_ = OpFunction %void None %132
%134 = 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 %147
%147 = OpLabel
OpLoopMerge %148 %149 None
OpBranch %150
%150 = OpLabel
%151 = OpLoad %int %m
%152 = OpLoad %int %high
%153 = OpSLessThanEqual %bool %151 %152
OpSelectionMerge %154 None
OpBranchConditional %153 %155 %156
%155 = OpLabel
OpBranch %154
%156 = OpLabel
OpBranch %148
%154 = OpLabel
%157 = OpLoad %int %low
OpStore %i_2 %157
OpBranch %158
%158 = OpLabel
OpLoopMerge %159 %160 None
OpBranch %161
%161 = OpLabel
%162 = OpLoad %int %i_2
%163 = OpLoad %int %high
%164 = OpSLessThan %bool %162 %163
OpSelectionMerge %165 None
OpBranchConditional %164 %166 %167
%166 = OpLabel
OpBranch %165
%167 = OpLabel
OpBranch %159
%165 = OpLabel
%168 = OpLoad %int %i_2
OpStore %from_1 %168
%169 = OpLoad %int %i_2
%170 = OpLoad %int %m
%171 = OpIAdd %int %169 %170
%172 = OpISub %int %171 %int_1
OpStore %mid_1 %172
%173 = OpLoad %int %i_2
%174 = OpLoad %int %m
%175 = OpLoad %int %high
%179 = OpIMul %int %int_2 %174
%180 = OpIAdd %int %173 %179
%181 = OpISub %int %180 %int_1
%176 = OpExtInst %int %177 SMin %181 %175
OpStore %to_1 %176
%182 = OpLoad %int %from_1
OpStore %param %182
%183 = OpLoad %int %mid_1
OpStore %param_1 %183
%184 = OpLoad %int %to_1
OpStore %param_2 %184
%185 = OpFunctionCall %void %merge_i1_i1_i1_ %param %param_1 %param_2
OpBranch %160
%160 = OpLabel
%189 = OpLoad %int %m
%190 = OpLoad %int %i_2
%191 = OpIMul %int %int_2 %189
%192 = OpIAdd %int %190 %191
OpStore %i_2 %192
OpBranch %158
%159 = OpLabel
OpBranch %149
%149 = OpLabel
%193 = OpLoad %int %m
%194 = OpIMul %int %int_2 %193
OpStore %m %194
OpBranch %147
%148 = OpLabel
OpReturn
OpFunctionEnd
%main_1 = OpFunction %void None %132
%196 = OpLabel
%i_3 = OpVariable %_ptr_Function_int Function %32
%j_1 = OpVariable %_ptr_Function_int Function %32
%grey = OpVariable %_ptr_Function_float Function %201
%guard233 = OpVariable %_ptr_Function_bool Function %390
%204 = OpAccessChain %_ptr_Uniform_float %x_28 %uint_0 %uint_0
%205 = OpLoad %float %204
%206 = OpConvertFToS %int %205
OpStore %i_3 %206
OpBranch %207
%207 = OpLabel
OpLoopMerge %208 %209 None
OpBranch %210
%210 = OpLabel
%211 = OpLoad %int %i_3
OpSelectionMerge %212 None
OpSwitch %211 %213 9 %214 8 %215 7 %216 6 %217 5 %218 4 %219 3 %220 2 %221 1 %222 0 %223
%214 = OpLabel
%224 = OpLoad %int %i_3
%225 = OpAccessChain %_ptr_Private_int %data %224
OpStore %225 %int_n5
OpBranch %212
%215 = OpLabel
%227 = OpLoad %int %i_3
%228 = OpAccessChain %_ptr_Private_int %data %227
OpStore %228 %int_n4
OpBranch %212
%216 = OpLabel
%230 = OpLoad %int %i_3
%231 = OpAccessChain %_ptr_Private_int %data %230
OpStore %231 %int_n3
OpBranch %212
%217 = OpLabel
%233 = OpLoad %int %i_3
%234 = OpAccessChain %_ptr_Private_int %data %233
OpStore %234 %int_n2
OpBranch %212
%218 = OpLabel
%236 = OpLoad %int %i_3
%237 = OpAccessChain %_ptr_Private_int %data %236
OpStore %237 %int_n1
OpBranch %212
%219 = OpLabel
%239 = OpLoad %int %i_3
%240 = OpAccessChain %_ptr_Private_int %data %239
OpStore %240 %int_0
OpBranch %212
%220 = OpLabel
%241 = OpLoad %int %i_3
%242 = OpAccessChain %_ptr_Private_int %data %241
OpStore %242 %int_1
OpBranch %212
%221 = OpLabel
%243 = OpLoad %int %i_3
%244 = OpAccessChain %_ptr_Private_int %data %243
OpStore %244 %int_2
OpBranch %212
%222 = OpLabel
%245 = OpLoad %int %i_3
%246 = OpAccessChain %_ptr_Private_int %data %245
OpStore %246 %int_3
OpBranch %212
%223 = OpLabel
%248 = OpLoad %int %i_3
%249 = OpAccessChain %_ptr_Private_int %data %248
OpStore %249 %int_4
OpBranch %212
%213 = OpLabel
OpBranch %212
%212 = OpLabel
%251 = OpLoad %int %i_3
%252 = OpIAdd %int %251 %int_1
OpStore %i_3 %252
OpBranch %209
%209 = OpLabel
%253 = OpLoad %int %i_3
%254 = OpSLessThan %bool %253 %int_10
OpBranchConditional %254 %207 %208
%208 = OpLabel
OpStore %j_1 %int_0
OpBranch %255
%255 = OpLabel
OpLoopMerge %256 %257 None
OpBranch %258
%258 = OpLabel
%259 = OpLoad %int %j_1
%260 = OpSLessThan %bool %259 %int_10
%261 = OpAccessChain %_ptr_Uniform_float %x_28 %uint_0 %uint_0
%262 = OpLoad %float %261
%265 = OpFOrdLessThanEqual %bool %262 %float_1
%263 = OpLogicalNot %bool %265
OpSelectionMerge %266 None
OpBranchConditional %263 %267 %266
%267 = OpLabel
OpStore %grey %float_1
OpBranch %266
%266 = OpLabel
OpSelectionMerge %268 None
OpBranchConditional %260 %269 %270
%269 = OpLabel
OpBranch %268
%270 = OpLabel
OpBranch %256
%268 = OpLabel
%271 = OpLoad %int %j_1
%272 = OpLoad %int %j_1
%273 = OpAccessChain %_ptr_Private_int %data %272
%274 = OpLoad %int %273
%275 = OpAccessChain %_ptr_Private_int %temp %271
OpStore %275 %274
OpBranch %257
%257 = OpLabel
%276 = OpLoad %int %j_1
%277 = OpIAdd %int %276 %int_1
OpStore %j_1 %277
OpBranch %255
%256 = OpLabel
%278 = OpFunctionCall %void %mergeSort_
%281 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%282 = OpLoad %float %281
%283 = OpConvertFToS %int %282
%285 = OpSLessThan %bool %283 %int_30
OpSelectionMerge %286 None
OpBranchConditional %285 %287 %288
%287 = OpLabel
%289 = OpAccessChain %_ptr_Private_int %data %int_0
%290 = OpLoad %int %289
%292 = OpConvertSToF %float %290
%294 = OpFDiv %float %292 %float_10
%295 = OpFAdd %float %float_0_5 %294
OpStore %grey %295
OpBranch %286
%288 = OpLabel
%296 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%297 = OpLoad %float %296
%298 = OpConvertFToS %int %297
%300 = OpSLessThan %bool %298 %int_60
OpSelectionMerge %301 None
OpBranchConditional %300 %302 %303
%302 = OpLabel
%304 = OpAccessChain %_ptr_Private_int %data %int_1
%305 = OpLoad %int %304
%306 = OpConvertSToF %float %305
%307 = OpFDiv %float %306 %float_10
%308 = OpFAdd %float %float_0_5 %307
OpStore %grey %308
OpBranch %301
%303 = OpLabel
%309 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%310 = OpLoad %float %309
%311 = OpConvertFToS %int %310
%313 = OpSLessThan %bool %311 %int_90
OpSelectionMerge %314 None
OpBranchConditional %313 %315 %316
%315 = OpLabel
%317 = OpAccessChain %_ptr_Private_int %data %int_2
%318 = OpLoad %int %317
%319 = OpConvertSToF %float %318
%320 = OpFDiv %float %319 %float_10
%321 = OpFAdd %float %float_0_5 %320
OpStore %grey %321
OpBranch %314
%316 = OpLabel
%322 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%323 = OpLoad %float %322
%324 = OpConvertFToS %int %323
%326 = OpSLessThan %bool %324 %int_120
OpSelectionMerge %327 None
OpBranchConditional %326 %328 %329
%328 = OpLabel
%330 = OpAccessChain %_ptr_Private_int %data %int_3
%331 = OpLoad %int %330
%332 = OpConvertSToF %float %331
%333 = OpFDiv %float %332 %float_10
%334 = OpFAdd %float %float_0_5 %333
OpStore %grey %334
OpBranch %327
%329 = OpLabel
%335 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%336 = OpLoad %float %335
%337 = OpConvertFToS %int %336
%339 = OpSLessThan %bool %337 %int_150
OpSelectionMerge %340 None
OpBranchConditional %339 %341 %342
%341 = OpLabel
OpKill
%342 = OpLabel
%343 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%344 = OpLoad %float %343
%345 = OpConvertFToS %int %344
%347 = OpSLessThan %bool %345 %int_180
OpSelectionMerge %348 None
OpBranchConditional %347 %349 %350
%349 = OpLabel
%352 = OpAccessChain %_ptr_Private_int %data %int_5
%353 = OpLoad %int %352
%354 = OpConvertSToF %float %353
%355 = OpFDiv %float %354 %float_10
%356 = OpFAdd %float %float_0_5 %355
OpStore %grey %356
OpBranch %348
%350 = OpLabel
%357 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%358 = OpLoad %float %357
%359 = OpConvertFToS %int %358
%361 = OpSLessThan %bool %359 %int_210
OpSelectionMerge %362 None
OpBranchConditional %361 %363 %364
%363 = OpLabel
%366 = OpAccessChain %_ptr_Private_int %data %int_6
%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 %362
%364 = OpLabel
%371 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%372 = OpLoad %float %371
%373 = OpConvertFToS %int %372
%375 = OpSLessThan %bool %373 %int_240
OpSelectionMerge %376 None
OpBranchConditional %375 %377 %378
%377 = OpLabel
%380 = OpAccessChain %_ptr_Private_int %data %int_7
%381 = OpLoad %int %380
%382 = OpConvertSToF %float %381
%383 = OpFDiv %float %382 %float_10
%384 = OpFAdd %float %float_0_5 %383
OpStore %grey %384
OpBranch %376
%378 = OpLabel
%385 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%386 = OpLoad %float %385
OpStore %guard233 %true
%391 = OpConvertFToS %int %386
%393 = OpSLessThan %bool %391 %int_270
OpSelectionMerge %394 None
OpBranchConditional %393 %395 %396
%395 = OpLabel
%398 = OpAccessChain %_ptr_Private_int %data %int_8
%399 = OpLoad %int %398
%400 = OpConvertSToF %float %399
%401 = OpFDiv %float %400 %float_10
%402 = OpFAdd %float %float_0_5 %401
OpStore %grey %402
OpStore %guard233 %false
OpBranch %394
%396 = OpLabel
%404 = OpLoad %bool %guard233
OpSelectionMerge %405 None
OpBranchConditional %404 %406 %405
%406 = OpLabel
%407 = OpAccessChain %_ptr_Uniform_float %x_28 %uint_0 %uint_1
%408 = OpLoad %float %407
%411 = OpFOrdLessThan %bool %float_0 %408
%409 = OpLogicalNot %bool %411
OpSelectionMerge %412 None
OpBranchConditional %409 %413 %412
%413 = OpLabel
OpStore %guard233 %false
OpBranch %412
%412 = OpLabel
%414 = OpLoad %bool %guard233
OpSelectionMerge %415 None
OpBranchConditional %414 %416 %415
%416 = OpLabel
OpKill
%415 = OpLabel
OpBranch %405
%405 = OpLabel
OpBranch %394
%394 = OpLabel
OpBranch %376
%376 = OpLabel
OpBranch %362
%362 = OpLabel
OpBranch %348
%348 = OpLabel
OpBranch %340
%340 = OpLabel
OpBranch %327
%327 = OpLabel
OpBranch %314
%314 = OpLabel
OpBranch %301
%301 = OpLabel
OpBranch %286
%286 = OpLabel
%417 = OpLoad %float %grey
%419 = OpCompositeConstruct %v3float %417 %417 %417
%420 = OpCompositeExtract %float %419 0
%421 = OpCompositeExtract %float %419 1
%422 = OpCompositeExtract %float %419 2
%423 = OpCompositeConstruct %v4float %420 %421 %422 %float_1
OpStore %x_GLF_color %423
OpReturn
OpFunctionEnd
%tint_symbol_3 = OpFunction %void None %424
%tint_symbol_1 = OpFunctionParameter %main_out
%428 = OpLabel
%429 = OpCompositeExtract %v4float %tint_symbol_1 0
OpStore %tint_symbol_2 %429
OpReturn
OpFunctionEnd
%main = OpFunction %void None %132
%431 = OpLabel
%432 = OpLoad %v4float %tint_symbol
OpStore %gl_FragCoord %432
%433 = OpFunctionCall %void %main_1
%435 = OpLoad %v4float %x_GLF_color
%436 = OpCompositeConstruct %main_out %435
%434 = OpFunctionCall %void %tint_symbol_3 %436
OpReturn
OpFunctionEnd