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 %a "a" 13 OpName %b "b" 14 OpName %c "c" 15 OpName %d "d" 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 %52 RelaxedPrecision 27 OpDecorate %54 RelaxedPrecision 28 OpDecorate %55 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_0 = OpConstant %int 0 46 %int_1 = OpConstant %int 1 47 %int_2 = OpConstant %int 2 48 %int_5 = OpConstant %int 5 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%_entrypoint_v = OpFunction %void None %12 55 %13 = OpLabel 56 %17 = OpVariable %_ptr_Function_v2float Function 57 OpStore %17 %16 58 %19 = OpFunctionCall %v4float %main %17 59 OpStore %sk_FragColor %19 60 OpReturn 61 OpFunctionEnd 62 %main = OpFunction %v4float None %20 63 %21 = OpFunctionParameter %_ptr_Function_v2float 64 %22 = OpLabel 65 %a = OpVariable %_ptr_Function_int Function 66 %b = OpVariable %_ptr_Function_int Function 67 %c = OpVariable %_ptr_Function_int Function 68 %d = OpVariable %_ptr_Function_int Function 69 %45 = OpVariable %_ptr_Function_v4float Function 70 OpStore %a %int_0 71 OpStore %b %int_0 72 OpStore %c %int_0 73 OpStore %d %int_0 74 OpStore %a %int_1 75 OpStore %b %int_2 76 OpStore %c %int_5 77 OpSelectionMerge %37 None 78 OpBranchConditional %true %36 %37 79 %36 = OpLabel 80 OpBranch %37 81 %37 = OpLabel 82 %38 = OpPhi %bool %false %22 %true %36 83 OpSelectionMerge %40 None 84 OpBranchConditional %38 %39 %40 85 %39 = OpLabel 86 OpBranch %40 87 %40 = OpLabel 88 %41 = OpPhi %bool %false %37 %true %39 89 OpSelectionMerge %43 None 90 OpBranchConditional %41 %42 %43 91 %42 = OpLabel 92 OpBranch %43 93 %43 = OpLabel 94 %44 = OpPhi %bool %false %40 %true %42 95 OpSelectionMerge %49 None 96 OpBranchConditional %44 %47 %48 97 %47 = OpLabel 98 %50 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 99 %52 = OpLoad %v4float %50 100 OpStore %45 %52 101 OpBranch %49 102 %48 = OpLabel 103 %53 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 104 %54 = OpLoad %v4float %53 105 OpStore %45 %54 106 OpBranch %49 107 %49 = OpLabel 108 %55 = OpLoad %v4float %45 109 OpReturnValue %55 110 OpFunctionEnd 111