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 OpName %_entrypoint_v "_entrypoint_v" 11 OpName %main "main" 12 OpName %i1 "i1" 13 OpName %i2 "i2" 14 OpName %i3 "i3" 15 OpName %i4 "i4" 16 OpDecorate %sk_FragColor RelaxedPrecision 17 OpDecorate %sk_FragColor Location 0 18 OpDecorate %sk_FragColor Index 0 19 OpMemberDecorate %_UniformBuffer 0 Offset 0 20 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 21 OpMemberDecorate %_UniformBuffer 1 Offset 16 22 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 23 OpDecorate %_UniformBuffer Block 24 OpDecorate %7 Binding 0 25 OpDecorate %7 DescriptorSet 0 26 OpDecorate %53 RelaxedPrecision 27 OpDecorate %55 RelaxedPrecision 28 OpDecorate %56 RelaxedPrecision 29 %float = OpTypeFloat 32 30 %v4float = OpTypeVector %float 4 31%_ptr_Output_v4float = OpTypePointer Output %v4float 32%sk_FragColor = OpVariable %_ptr_Output_v4float Output 33%_UniformBuffer = OpTypeStruct %v4float %v4float 34%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 35 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 36 %void = OpTypeVoid 37 %12 = OpTypeFunction %void 38 %float_0 = OpConstant %float 0 39 %v2float = OpTypeVector %float 2 40 %16 = OpConstantComposite %v2float %float_0 %float_0 41%_ptr_Function_v2float = OpTypePointer Function %v2float 42 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 43 %int = OpTypeInt 32 1 44%_ptr_Function_int = OpTypePointer Function %int 45 %int_1 = OpConstant %int 1 46 %int_342391 = OpConstant %int 342391 47%int_2000000000 = OpConstant %int 2000000000 48%int_n2000000000 = OpConstant %int -2000000000 49 %bool = OpTypeBool 50 %false = OpConstantFalse %bool 51 %true = OpConstantTrue %bool 52%_ptr_Function_v4float = OpTypePointer Function %v4float 53%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 54 %int_0 = OpConstant %int 0 55%_entrypoint_v = OpFunction %void None %12 56 %13 = OpLabel 57 %17 = OpVariable %_ptr_Function_v2float Function 58 OpStore %17 %16 59 %19 = OpFunctionCall %v4float %main %17 60 OpStore %sk_FragColor %19 61 OpReturn 62 OpFunctionEnd 63 %main = OpFunction %v4float None %20 64 %21 = OpFunctionParameter %_ptr_Function_v2float 65 %22 = OpLabel 66 %i1 = OpVariable %_ptr_Function_int Function 67 %i2 = OpVariable %_ptr_Function_int Function 68 %i3 = OpVariable %_ptr_Function_int Function 69 %i4 = OpVariable %_ptr_Function_int Function 70 %45 = OpVariable %_ptr_Function_v4float Function 71 OpStore %i1 %int_1 72 OpStore %i2 %int_342391 73 OpStore %i3 %int_2000000000 74 OpStore %i4 %int_n2000000000 75 OpSelectionMerge %37 None 76 OpBranchConditional %true %36 %37 77 %36 = OpLabel 78 OpBranch %37 79 %37 = OpLabel 80 %38 = OpPhi %bool %false %22 %true %36 81 OpSelectionMerge %40 None 82 OpBranchConditional %38 %39 %40 83 %39 = OpLabel 84 OpBranch %40 85 %40 = OpLabel 86 %41 = OpPhi %bool %false %37 %true %39 87 OpSelectionMerge %43 None 88 OpBranchConditional %41 %42 %43 89 %42 = OpLabel 90 OpBranch %43 91 %43 = OpLabel 92 %44 = OpPhi %bool %false %40 %true %42 93 OpSelectionMerge %49 None 94 OpBranchConditional %44 %47 %48 95 %47 = OpLabel 96 %50 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 97 %53 = OpLoad %v4float %50 98 OpStore %45 %53 99 OpBranch %49 100 %48 = OpLabel 101 %54 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 102 %55 = OpLoad %v4float %54 103 OpStore %45 %55 104 OpBranch %49 105 %49 = OpLabel 106 %56 = OpLoad %v4float %45 107 OpReturnValue %56 108 OpFunctionEnd 109