1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor 5 OpExecutionMode %_entrypoint_v OriginUpperLeft 6 OpName %sk_FragColor "sk_FragColor" 7 OpName %_UniformBuffer "_UniformBuffer" 8 OpMemberName %_UniformBuffer 0 "colorGreen" 9 OpMemberName %_UniformBuffer 1 "colorRed" 10 OpMemberName %_UniformBuffer 2 "testArray" 11 OpMemberName %_UniformBuffer 3 "testArrayNegative" 12 OpName %_entrypoint_v "_entrypoint_v" 13 OpName %main "main" 14 OpName %f1 "f1" 15 OpName %f2 "f2" 16 OpName %f3 "f3" 17 OpName %v1 "v1" 18 OpName %v2 "v2" 19 OpName %v3 "v3" 20 OpName %m1 "m1" 21 OpName %m2 "m2" 22 OpName %m3 "m3" 23 OpName %S "S" 24 OpMemberName %S 0 "x" 25 OpMemberName %S 1 "y" 26 OpName %s1 "s1" 27 OpName %s2 "s2" 28 OpName %s3 "s3" 29 OpDecorate %sk_FragColor RelaxedPrecision 30 OpDecorate %sk_FragColor Location 0 31 OpDecorate %sk_FragColor Index 0 32 OpDecorate %_arr_float_int_5 ArrayStride 16 33 OpMemberDecorate %_UniformBuffer 0 Offset 0 34 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 35 OpMemberDecorate %_UniformBuffer 1 Offset 16 36 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 37 OpMemberDecorate %_UniformBuffer 2 Offset 32 38 OpMemberDecorate %_UniformBuffer 3 Offset 112 39 OpDecorate %_UniformBuffer Block 40 OpDecorate %7 Binding 0 41 OpDecorate %7 DescriptorSet 0 42 OpDecorate %_arr_v3int_int_2 ArrayStride 16 43 OpDecorate %_arr_mat2v2float_int_3 ArrayStride 32 44 OpMemberDecorate %S 0 Offset 0 45 OpMemberDecorate %S 1 Offset 4 46 OpDecorate %_arr_S_int_3 ArrayStride 16 47 OpDecorate %224 RelaxedPrecision 48 OpDecorate %226 RelaxedPrecision 49 OpDecorate %229 RelaxedPrecision 50 OpDecorate %231 RelaxedPrecision 51 OpDecorate %235 RelaxedPrecision 52 OpDecorate %237 RelaxedPrecision 53 OpDecorate %244 RelaxedPrecision 54 OpDecorate %246 RelaxedPrecision 55 OpDecorate %249 RelaxedPrecision 56 OpDecorate %251 RelaxedPrecision 57 OpDecorate %255 RelaxedPrecision 58 OpDecorate %257 RelaxedPrecision 59 OpDecorate %287 RelaxedPrecision 60 OpDecorate %289 RelaxedPrecision 61 OpDecorate %290 RelaxedPrecision 62 %float = OpTypeFloat 32 63 %v4float = OpTypeVector %float 4 64%_ptr_Output_v4float = OpTypePointer Output %v4float 65%sk_FragColor = OpVariable %_ptr_Output_v4float Output 66 %int = OpTypeInt 32 1 67 %int_5 = OpConstant %int 5 68%_arr_float_int_5 = OpTypeArray %float %int_5 69%_UniformBuffer = OpTypeStruct %v4float %v4float %_arr_float_int_5 %_arr_float_int_5 70%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 71 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 72 %void = OpTypeVoid 73 %15 = OpTypeFunction %void 74 %float_0 = OpConstant %float 0 75 %v2float = OpTypeVector %float 2 76 %19 = OpConstantComposite %v2float %float_0 %float_0 77%_ptr_Function_v2float = OpTypePointer Function %v2float 78 %23 = OpTypeFunction %v4float %_ptr_Function_v2float 79%_ptr_Function__arr_float_int_5 = OpTypePointer Function %_arr_float_int_5 80 %float_1 = OpConstant %float 1 81 %float_2 = OpConstant %float 2 82 %float_3 = OpConstant %float 3 83 %float_4 = OpConstant %float 4 84 %float_5 = OpConstant %float 5 85 %float_n4 = OpConstant %float -4 86 %v3int = OpTypeVector %int 3 87 %int_2 = OpConstant %int 2 88%_arr_v3int_int_2 = OpTypeArray %v3int %int_2 89%_ptr_Function__arr_v3int_int_2 = OpTypePointer Function %_arr_v3int_int_2 90 %int_1 = OpConstant %int 1 91 %int_3 = OpConstant %int 3 92 %45 = OpConstantComposite %v3int %int_1 %int_2 %int_3 93 %int_4 = OpConstant %int 4 94 %int_6 = OpConstant %int 6 95 %48 = OpConstantComposite %v3int %int_4 %int_5 %int_6 96 %int_n6 = OpConstant %int -6 97 %53 = OpConstantComposite %v3int %int_4 %int_5 %int_n6 98%mat2v2float = OpTypeMatrix %v2float 2 99%_arr_mat2v2float_int_3 = OpTypeArray %mat2v2float %int_3 100%_ptr_Function__arr_mat2v2float_int_3 = OpTypePointer Function %_arr_mat2v2float_int_3 101 %59 = OpConstantComposite %v2float %float_1 %float_0 102 %60 = OpConstantComposite %v2float %float_0 %float_1 103 %61 = OpConstantComposite %mat2v2float %59 %60 104 %62 = OpConstantComposite %v2float %float_2 %float_0 105 %63 = OpConstantComposite %v2float %float_0 %float_2 106 %64 = OpConstantComposite %mat2v2float %62 %63 107 %float_6 = OpConstant %float 6 108 %66 = OpConstantComposite %v2float %float_3 %float_4 109 %67 = OpConstantComposite %v2float %float_5 %float_6 110 %68 = OpConstantComposite %mat2v2float %66 %67 111 %72 = OpConstantComposite %v2float %float_2 %float_3 112 %73 = OpConstantComposite %v2float %float_4 %float_5 113 %74 = OpConstantComposite %mat2v2float %72 %73 114 %75 = OpConstantComposite %v2float %float_6 %float_0 115 %76 = OpConstantComposite %v2float %float_0 %float_6 116 %77 = OpConstantComposite %mat2v2float %75 %76 117 %S = OpTypeStruct %int %int 118%_arr_S_int_3 = OpTypeArray %S %int_3 119%_ptr_Function__arr_S_int_3 = OpTypePointer Function %_arr_S_int_3 120 %int_0 = OpConstant %int 0 121 %bool = OpTypeBool 122 %false = OpConstantFalse %bool 123 %true = OpConstantTrue %bool 124%_ptr_Uniform__arr_float_int_5 = OpTypePointer Uniform %_arr_float_int_5 125 %v3bool = OpTypeVector %bool 3 126 %v2bool = OpTypeVector %bool 2 127%_ptr_Function_v4float = OpTypePointer Function %v4float 128%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 129%_entrypoint_v = OpFunction %void None %15 130 %16 = OpLabel 131 %20 = OpVariable %_ptr_Function_v2float Function 132 OpStore %20 %19 133 %22 = OpFunctionCall %v4float %main %20 134 OpStore %sk_FragColor %22 135 OpReturn 136 OpFunctionEnd 137 %main = OpFunction %v4float None %23 138 %24 = OpFunctionParameter %_ptr_Function_v2float 139 %25 = OpLabel 140 %f1 = OpVariable %_ptr_Function__arr_float_int_5 Function 141 %f2 = OpVariable %_ptr_Function__arr_float_int_5 Function 142 %f3 = OpVariable %_ptr_Function__arr_float_int_5 Function 143 %v1 = OpVariable %_ptr_Function__arr_v3int_int_2 Function 144 %v2 = OpVariable %_ptr_Function__arr_v3int_int_2 Function 145 %v3 = OpVariable %_ptr_Function__arr_v3int_int_2 Function 146 %m1 = OpVariable %_ptr_Function__arr_mat2v2float_int_3 Function 147 %m2 = OpVariable %_ptr_Function__arr_mat2v2float_int_3 Function 148 %m3 = OpVariable %_ptr_Function__arr_mat2v2float_int_3 Function 149 %s1 = OpVariable %_ptr_Function__arr_S_int_3 Function 150 %s2 = OpVariable %_ptr_Function__arr_S_int_3 Function 151 %s3 = OpVariable %_ptr_Function__arr_S_int_3 Function 152 %280 = OpVariable %_ptr_Function_v4float Function 153 %33 = OpCompositeConstruct %_arr_float_int_5 %float_1 %float_2 %float_3 %float_4 %float_5 154 OpStore %f1 %33 155 OpStore %f2 %33 156 %37 = OpCompositeConstruct %_arr_float_int_5 %float_1 %float_2 %float_3 %float_n4 %float_5 157 OpStore %f3 %37 158 %49 = OpCompositeConstruct %_arr_v3int_int_2 %45 %48 159 OpStore %v1 %49 160 OpStore %v2 %49 161 %54 = OpCompositeConstruct %_arr_v3int_int_2 %45 %53 162 OpStore %v3 %54 163 %69 = OpCompositeConstruct %_arr_mat2v2float_int_3 %61 %64 %68 164 OpStore %m1 %69 165 OpStore %m2 %69 166 %78 = OpCompositeConstruct %_arr_mat2v2float_int_3 %61 %74 %77 167 OpStore %m3 %78 168 %83 = OpCompositeConstruct %S %int_1 %int_2 169 %84 = OpCompositeConstruct %S %int_3 %int_4 170 %85 = OpCompositeConstruct %S %int_5 %int_6 171 %86 = OpCompositeConstruct %_arr_S_int_3 %83 %84 %85 172 OpStore %s1 %86 173 %89 = OpCompositeConstruct %S %int_0 %int_0 174 %90 = OpCompositeConstruct %_arr_S_int_3 %83 %89 %85 175 OpStore %s2 %90 176 OpStore %s3 %86 177 %95 = OpLogicalAnd %bool %true %true 178 %96 = OpLogicalAnd %bool %true %95 179 %97 = OpLogicalAnd %bool %true %96 180 %98 = OpLogicalAnd %bool %true %97 181 OpSelectionMerge %100 None 182 OpBranchConditional %98 %99 %100 183 %99 = OpLabel 184 %101 = OpLogicalOr %bool %false %false 185 %102 = OpLogicalOr %bool %false %101 186 %103 = OpFUnordNotEqual %bool %float_4 %float_n4 187 %104 = OpLogicalOr %bool %103 %102 188 %105 = OpLogicalOr %bool %false %104 189 OpBranch %100 190 %100 = OpLabel 191 %106 = OpPhi %bool %false %25 %105 %99 192 OpSelectionMerge %108 None 193 OpBranchConditional %106 %107 %108 194 %107 = OpLabel 195 %109 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %7 %int_2 196 %111 = OpLoad %_arr_float_int_5 %109 197 %112 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %7 %int_3 198 %113 = OpLoad %_arr_float_int_5 %112 199 %114 = OpCompositeExtract %float %111 0 200 %115 = OpCompositeExtract %float %113 0 201 %116 = OpFUnordNotEqual %bool %114 %115 202 %117 = OpCompositeExtract %float %111 1 203 %118 = OpCompositeExtract %float %113 1 204 %119 = OpFUnordNotEqual %bool %117 %118 205 %120 = OpLogicalOr %bool %119 %116 206 %121 = OpCompositeExtract %float %111 2 207 %122 = OpCompositeExtract %float %113 2 208 %123 = OpFUnordNotEqual %bool %121 %122 209 %124 = OpLogicalOr %bool %123 %120 210 %125 = OpCompositeExtract %float %111 3 211 %126 = OpCompositeExtract %float %113 3 212 %127 = OpFUnordNotEqual %bool %125 %126 213 %128 = OpLogicalOr %bool %127 %124 214 %129 = OpCompositeExtract %float %111 4 215 %130 = OpCompositeExtract %float %113 4 216 %131 = OpFUnordNotEqual %bool %129 %130 217 %132 = OpLogicalOr %bool %131 %128 218 OpBranch %108 219 %108 = OpLabel 220 %133 = OpPhi %bool %false %100 %132 %107 221 OpSelectionMerge %135 None 222 OpBranchConditional %133 %134 %135 223 %134 = OpLabel 224 %136 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %7 %int_2 225 %137 = OpLoad %_arr_float_int_5 %136 226 %138 = OpCompositeExtract %float %137 0 227 %139 = OpFOrdEqual %bool %138 %float_1 228 %140 = OpCompositeExtract %float %137 1 229 %141 = OpFOrdEqual %bool %140 %float_2 230 %142 = OpLogicalAnd %bool %141 %139 231 %143 = OpCompositeExtract %float %137 2 232 %144 = OpFOrdEqual %bool %143 %float_3 233 %145 = OpLogicalAnd %bool %144 %142 234 %146 = OpCompositeExtract %float %137 3 235 %147 = OpFOrdEqual %bool %146 %float_4 236 %148 = OpLogicalAnd %bool %147 %145 237 %149 = OpCompositeExtract %float %137 4 238 %150 = OpFOrdEqual %bool %149 %float_5 239 %151 = OpLogicalAnd %bool %150 %148 240 OpBranch %135 241 %135 = OpLabel 242 %152 = OpPhi %bool %false %108 %151 %134 243 OpSelectionMerge %154 None 244 OpBranchConditional %152 %153 %154 245 %153 = OpLabel 246 %155 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %7 %int_2 247 %156 = OpLoad %_arr_float_int_5 %155 248 %157 = OpCompositeExtract %float %156 0 249 %158 = OpFUnordNotEqual %bool %157 %float_1 250 %159 = OpCompositeExtract %float %156 1 251 %160 = OpFUnordNotEqual %bool %159 %float_2 252 %161 = OpLogicalOr %bool %160 %158 253 %162 = OpCompositeExtract %float %156 2 254 %163 = OpFUnordNotEqual %bool %162 %float_3 255 %164 = OpLogicalOr %bool %163 %161 256 %165 = OpCompositeExtract %float %156 3 257 %166 = OpFUnordNotEqual %bool %165 %float_n4 258 %167 = OpLogicalOr %bool %166 %164 259 %168 = OpCompositeExtract %float %156 4 260 %169 = OpFUnordNotEqual %bool %168 %float_5 261 %170 = OpLogicalOr %bool %169 %167 262 OpBranch %154 263 %154 = OpLabel 264 %171 = OpPhi %bool %false %135 %170 %153 265 OpSelectionMerge %173 None 266 OpBranchConditional %171 %172 %173 267 %172 = OpLabel 268 %174 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %7 %int_2 269 %175 = OpLoad %_arr_float_int_5 %174 270 %176 = OpCompositeExtract %float %175 0 271 %177 = OpFOrdEqual %bool %float_1 %176 272 %178 = OpCompositeExtract %float %175 1 273 %179 = OpFOrdEqual %bool %float_2 %178 274 %180 = OpLogicalAnd %bool %179 %177 275 %181 = OpCompositeExtract %float %175 2 276 %182 = OpFOrdEqual %bool %float_3 %181 277 %183 = OpLogicalAnd %bool %182 %180 278 %184 = OpCompositeExtract %float %175 3 279 %185 = OpFOrdEqual %bool %float_4 %184 280 %186 = OpLogicalAnd %bool %185 %183 281 %187 = OpCompositeExtract %float %175 4 282 %188 = OpFOrdEqual %bool %float_5 %187 283 %189 = OpLogicalAnd %bool %188 %186 284 OpBranch %173 285 %173 = OpLabel 286 %190 = OpPhi %bool %false %154 %189 %172 287 OpSelectionMerge %192 None 288 OpBranchConditional %190 %191 %192 289 %191 = OpLabel 290 %193 = OpAccessChain %_ptr_Uniform__arr_float_int_5 %7 %int_2 291 %194 = OpLoad %_arr_float_int_5 %193 292 %195 = OpCompositeExtract %float %194 0 293 %196 = OpFUnordNotEqual %bool %float_1 %195 294 %197 = OpCompositeExtract %float %194 1 295 %198 = OpFUnordNotEqual %bool %float_2 %197 296 %199 = OpLogicalOr %bool %198 %196 297 %200 = OpCompositeExtract %float %194 2 298 %201 = OpFUnordNotEqual %bool %float_3 %200 299 %202 = OpLogicalOr %bool %201 %199 300 %203 = OpCompositeExtract %float %194 3 301 %204 = OpFUnordNotEqual %bool %float_n4 %203 302 %205 = OpLogicalOr %bool %204 %202 303 %206 = OpCompositeExtract %float %194 4 304 %207 = OpFUnordNotEqual %bool %float_5 %206 305 %208 = OpLogicalOr %bool %207 %205 306 OpBranch %192 307 %192 = OpLabel 308 %209 = OpPhi %bool %false %173 %208 %191 309 OpSelectionMerge %211 None 310 OpBranchConditional %209 %210 %211 311 %210 = OpLabel 312 %212 = OpLogicalAnd %bool %true %true 313 OpBranch %211 314 %211 = OpLabel 315 %213 = OpPhi %bool %false %192 %212 %210 316 OpSelectionMerge %215 None 317 OpBranchConditional %213 %214 %215 318 %214 = OpLabel 319 %216 = OpINotEqual %v3bool %48 %53 320 %218 = OpAny %bool %216 321 %219 = OpLogicalOr %bool %218 %false 322 OpBranch %215 323 %215 = OpLabel 324 %220 = OpPhi %bool %false %211 %219 %214 325 OpSelectionMerge %222 None 326 OpBranchConditional %220 %221 %222 327 %221 = OpLabel 328 %224 = OpFOrdEqual %v2bool %59 %59 329 %225 = OpAll %bool %224 330 %226 = OpFOrdEqual %v2bool %60 %60 331 %227 = OpAll %bool %226 332 %228 = OpLogicalAnd %bool %225 %227 333 %229 = OpFOrdEqual %v2bool %62 %62 334 %230 = OpAll %bool %229 335 %231 = OpFOrdEqual %v2bool %63 %63 336 %232 = OpAll %bool %231 337 %233 = OpLogicalAnd %bool %230 %232 338 %234 = OpLogicalAnd %bool %233 %228 339 %235 = OpFOrdEqual %v2bool %66 %66 340 %236 = OpAll %bool %235 341 %237 = OpFOrdEqual %v2bool %67 %67 342 %238 = OpAll %bool %237 343 %239 = OpLogicalAnd %bool %236 %238 344 %240 = OpLogicalAnd %bool %239 %234 345 OpBranch %222 346 %222 = OpLabel 347 %241 = OpPhi %bool %false %215 %240 %221 348 OpSelectionMerge %243 None 349 OpBranchConditional %241 %242 %243 350 %242 = OpLabel 351 %244 = OpFUnordNotEqual %v2bool %59 %59 352 %245 = OpAny %bool %244 353 %246 = OpFUnordNotEqual %v2bool %60 %60 354 %247 = OpAny %bool %246 355 %248 = OpLogicalOr %bool %245 %247 356 %249 = OpFUnordNotEqual %v2bool %62 %72 357 %250 = OpAny %bool %249 358 %251 = OpFUnordNotEqual %v2bool %63 %73 359 %252 = OpAny %bool %251 360 %253 = OpLogicalOr %bool %250 %252 361 %254 = OpLogicalOr %bool %253 %248 362 %255 = OpFUnordNotEqual %v2bool %66 %75 363 %256 = OpAny %bool %255 364 %257 = OpFUnordNotEqual %v2bool %67 %76 365 %258 = OpAny %bool %257 366 %259 = OpLogicalOr %bool %256 %258 367 %260 = OpLogicalOr %bool %259 %254 368 OpBranch %243 369 %243 = OpLabel 370 %261 = OpPhi %bool %false %222 %260 %242 371 OpSelectionMerge %263 None 372 OpBranchConditional %261 %262 %263 373 %262 = OpLabel 374 %264 = OpLogicalOr %bool %false %false 375 %265 = OpINotEqual %bool %int_3 %int_0 376 %266 = OpINotEqual %bool %int_4 %int_0 377 %267 = OpLogicalOr %bool %266 %265 378 %268 = OpLogicalOr %bool %267 %264 379 %269 = OpLogicalOr %bool %false %false 380 %270 = OpLogicalOr %bool %269 %268 381 OpBranch %263 382 %263 = OpLabel 383 %271 = OpPhi %bool %false %243 %270 %262 384 OpSelectionMerge %273 None 385 OpBranchConditional %271 %272 %273 386 %272 = OpLabel 387 %274 = OpLogicalAnd %bool %true %true 388 %275 = OpLogicalAnd %bool %true %true 389 %276 = OpLogicalAnd %bool %275 %274 390 %277 = OpLogicalAnd %bool %true %true 391 %278 = OpLogicalAnd %bool %277 %276 392 OpBranch %273 393 %273 = OpLabel 394 %279 = OpPhi %bool %false %263 %278 %272 395 OpSelectionMerge %284 None 396 OpBranchConditional %279 %282 %283 397 %282 = OpLabel 398 %285 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 399 %287 = OpLoad %v4float %285 400 OpStore %280 %287 401 OpBranch %284 402 %283 = OpLabel 403 %288 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 404 %289 = OpLoad %v4float %288 405 OpStore %280 %289 406 OpBranch %284 407 %284 = OpLabel 408 %290 = OpLoad %v4float %280 409 OpReturnValue %290 410 OpFunctionEnd 411