blob: bd5121de1fc5ad2e09b9eeb6307a52eb6a230f31 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 433
; Schema: 0
OpCapability Shader
%173 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %gl_FragCoord_param_1 %x_GLF_color_1_1
OpExecutionMode %main OriginUpperLeft
OpName %gl_FragCoord_param_1 "gl_FragCoord_param_1"
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
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 %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 %main_inner "main_inner"
OpName %gl_FragCoord_param "gl_FragCoord_param"
OpName %main "main"
OpDecorate %gl_FragCoord_param_1 BuiltIn FragCoord
OpDecorate %x_GLF_color_1_1 Location 0
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
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord_param_1 = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%7 = OpConstantNull %v4float
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %7
%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
%14 = OpConstantNull %_arr_int_uint_10
%data = OpVariable %_ptr_Private__arr_int_uint_10 Private %14
%temp = OpVariable %_ptr_Private__arr_int_uint_10 Private %14
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_28 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Private_v4float = OpTypePointer Private %v4float
%gl_FragCoord = OpVariable %_ptr_Private_v4float Private %7
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %7
%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
%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
%386 = 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
%420 = OpTypeFunction %main_out %v4float
%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
%guard233 = OpVariable %_ptr_Function_bool Function %386
%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
%257 = OpAccessChain %_ptr_Uniform_float %x_28 %uint_0 %uint_0
%258 = OpLoad %float %257
%261 = OpFOrdLessThanEqual %bool %258 %float_1
%259 = OpLogicalNot %bool %261
OpSelectionMerge %262 None
OpBranchConditional %259 %263 %262
%263 = OpLabel
OpStore %grey %float_1
OpBranch %262
%262 = OpLabel
OpSelectionMerge %264 None
OpBranchConditional %256 %265 %266
%265 = OpLabel
OpBranch %264
%266 = OpLabel
OpBranch %252
%264 = OpLabel
%267 = OpLoad %int %j_1
%268 = OpLoad %int %j_1
%269 = OpAccessChain %_ptr_Private_int %data %268
%270 = OpLoad %int %269
%271 = OpAccessChain %_ptr_Private_int %temp %267
OpStore %271 %270
OpBranch %253
%253 = OpLabel
%272 = OpLoad %int %j_1
%273 = OpIAdd %int %272 %int_1
OpStore %j_1 %273
OpBranch %251
%252 = OpLabel
%274 = OpFunctionCall %void %mergeSort_
%277 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%278 = OpLoad %float %277
%279 = OpConvertFToS %int %278
%281 = OpSLessThan %bool %279 %int_30
OpSelectionMerge %282 None
OpBranchConditional %281 %283 %284
%283 = OpLabel
%285 = OpAccessChain %_ptr_Private_int %data %int_0
%286 = OpLoad %int %285
%288 = OpConvertSToF %float %286
%290 = OpFDiv %float %288 %float_10
%291 = OpFAdd %float %float_0_5 %290
OpStore %grey %291
OpBranch %282
%284 = OpLabel
%292 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%293 = OpLoad %float %292
%294 = OpConvertFToS %int %293
%296 = OpSLessThan %bool %294 %int_60
OpSelectionMerge %297 None
OpBranchConditional %296 %298 %299
%298 = OpLabel
%300 = OpAccessChain %_ptr_Private_int %data %int_1
%301 = OpLoad %int %300
%302 = OpConvertSToF %float %301
%303 = OpFDiv %float %302 %float_10
%304 = OpFAdd %float %float_0_5 %303
OpStore %grey %304
OpBranch %297
%299 = OpLabel
%305 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%306 = OpLoad %float %305
%307 = OpConvertFToS %int %306
%309 = OpSLessThan %bool %307 %int_90
OpSelectionMerge %310 None
OpBranchConditional %309 %311 %312
%311 = OpLabel
%313 = OpAccessChain %_ptr_Private_int %data %int_2
%314 = OpLoad %int %313
%315 = OpConvertSToF %float %314
%316 = OpFDiv %float %315 %float_10
%317 = OpFAdd %float %float_0_5 %316
OpStore %grey %317
OpBranch %310
%312 = OpLabel
%318 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%319 = OpLoad %float %318
%320 = OpConvertFToS %int %319
%322 = OpSLessThan %bool %320 %int_120
OpSelectionMerge %323 None
OpBranchConditional %322 %324 %325
%324 = OpLabel
%326 = OpAccessChain %_ptr_Private_int %data %int_3
%327 = OpLoad %int %326
%328 = OpConvertSToF %float %327
%329 = OpFDiv %float %328 %float_10
%330 = OpFAdd %float %float_0_5 %329
OpStore %grey %330
OpBranch %323
%325 = OpLabel
%331 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%332 = OpLoad %float %331
%333 = OpConvertFToS %int %332
%335 = OpSLessThan %bool %333 %int_150
OpSelectionMerge %336 None
OpBranchConditional %335 %337 %338
%337 = OpLabel
OpKill
%338 = OpLabel
%339 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%340 = OpLoad %float %339
%341 = OpConvertFToS %int %340
%343 = OpSLessThan %bool %341 %int_180
OpSelectionMerge %344 None
OpBranchConditional %343 %345 %346
%345 = OpLabel
%348 = OpAccessChain %_ptr_Private_int %data %int_5
%349 = OpLoad %int %348
%350 = OpConvertSToF %float %349
%351 = OpFDiv %float %350 %float_10
%352 = OpFAdd %float %float_0_5 %351
OpStore %grey %352
OpBranch %344
%346 = OpLabel
%353 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%354 = OpLoad %float %353
%355 = OpConvertFToS %int %354
%357 = OpSLessThan %bool %355 %int_210
OpSelectionMerge %358 None
OpBranchConditional %357 %359 %360
%359 = OpLabel
%362 = OpAccessChain %_ptr_Private_int %data %int_6
%363 = OpLoad %int %362
%364 = OpConvertSToF %float %363
%365 = OpFDiv %float %364 %float_10
%366 = OpFAdd %float %float_0_5 %365
OpStore %grey %366
OpBranch %358
%360 = OpLabel
%367 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%368 = OpLoad %float %367
%369 = OpConvertFToS %int %368
%371 = OpSLessThan %bool %369 %int_240
OpSelectionMerge %372 None
OpBranchConditional %371 %373 %374
%373 = OpLabel
%376 = OpAccessChain %_ptr_Private_int %data %int_7
%377 = OpLoad %int %376
%378 = OpConvertSToF %float %377
%379 = OpFDiv %float %378 %float_10
%380 = OpFAdd %float %float_0_5 %379
OpStore %grey %380
OpBranch %372
%374 = OpLabel
%381 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%382 = OpLoad %float %381
OpStore %guard233 %true
%387 = OpConvertFToS %int %382
%389 = OpSLessThan %bool %387 %int_270
OpSelectionMerge %390 None
OpBranchConditional %389 %391 %392
%391 = OpLabel
%394 = OpAccessChain %_ptr_Private_int %data %int_8
%395 = OpLoad %int %394
%396 = OpConvertSToF %float %395
%397 = OpFDiv %float %396 %float_10
%398 = OpFAdd %float %float_0_5 %397
OpStore %grey %398
OpStore %guard233 %false
OpBranch %390
%392 = OpLabel
%400 = OpLoad %bool %guard233
OpSelectionMerge %401 None
OpBranchConditional %400 %402 %401
%402 = OpLabel
%403 = OpAccessChain %_ptr_Uniform_float %x_28 %uint_0 %uint_1
%404 = OpLoad %float %403
%407 = OpFOrdLessThan %bool %float_0 %404
%405 = OpLogicalNot %bool %407
OpSelectionMerge %408 None
OpBranchConditional %405 %409 %408
%409 = OpLabel
OpStore %guard233 %false
OpBranch %408
%408 = OpLabel
%410 = OpLoad %bool %guard233
OpSelectionMerge %411 None
OpBranchConditional %410 %412 %411
%412 = OpLabel
OpKill
%411 = OpLabel
OpBranch %401
%401 = OpLabel
OpBranch %390
%390 = OpLabel
OpBranch %372
%372 = OpLabel
OpBranch %358
%358 = OpLabel
OpBranch %344
%344 = OpLabel
OpBranch %336
%336 = OpLabel
OpBranch %323
%323 = OpLabel
OpBranch %310
%310 = OpLabel
OpBranch %297
%297 = OpLabel
OpBranch %282
%282 = OpLabel
%413 = OpLoad %float %grey
%415 = OpCompositeConstruct %v3float %413 %413 %413
%416 = OpCompositeExtract %float %415 0
%417 = OpCompositeExtract %float %415 1
%418 = OpCompositeExtract %float %415 2
%419 = OpCompositeConstruct %v4float %416 %417 %418 %float_1
OpStore %x_GLF_color %419
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %420
%gl_FragCoord_param = OpFunctionParameter %v4float
%424 = OpLabel
OpStore %gl_FragCoord %gl_FragCoord_param
%425 = OpFunctionCall %void %main_1
%426 = OpLoad %v4float %x_GLF_color
%427 = OpCompositeConstruct %main_out %426
OpReturnValue %427
OpFunctionEnd
%main = OpFunction %void None %128
%429 = OpLabel
%431 = OpLoad %v4float %gl_FragCoord_param_1
%430 = OpFunctionCall %main_out %main_inner %431
%432 = OpCompositeExtract %v4float %430 0
OpStore %x_GLF_color_1_1 %432
OpReturn
OpFunctionEnd