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