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 "testInputs" 9 OpMemberName %_UniformBuffer 1 "colorGreen" 10 OpMemberName %_UniformBuffer 2 "colorRed" 11 OpName %_entrypoint_v "_entrypoint_v" 12 OpName %main "main" 13 OpDecorate %sk_FragColor RelaxedPrecision 14 OpDecorate %sk_FragColor Location 0 15 OpDecorate %sk_FragColor Index 0 16 OpMemberDecorate %_UniformBuffer 0 Offset 0 17 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 18 OpMemberDecorate %_UniformBuffer 1 Offset 16 19 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 20 OpMemberDecorate %_UniformBuffer 2 Offset 32 21 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision 22 OpDecorate %_UniformBuffer Block 23 OpDecorate %7 Binding 0 24 OpDecorate %7 DescriptorSet 0 25 OpDecorate %25 RelaxedPrecision 26 OpDecorate %30 RelaxedPrecision 27 OpDecorate %31 RelaxedPrecision 28 OpDecorate %36 RelaxedPrecision 29 OpDecorate %38 RelaxedPrecision 30 OpDecorate %39 RelaxedPrecision 31 OpDecorate %47 RelaxedPrecision 32 OpDecorate %49 RelaxedPrecision 33 OpDecorate %50 RelaxedPrecision 34 OpDecorate %60 RelaxedPrecision 35 OpDecorate %62 RelaxedPrecision 36 OpDecorate %76 RelaxedPrecision 37 OpDecorate %79 RelaxedPrecision 38 OpDecorate %80 RelaxedPrecision 39 %float = OpTypeFloat 32 40 %v4float = OpTypeVector %float 4 41%_ptr_Output_v4float = OpTypePointer Output %v4float 42%sk_FragColor = OpVariable %_ptr_Output_v4float Output 43%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float 44%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 45 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 46 %void = OpTypeVoid 47 %12 = OpTypeFunction %void 48 %float_0 = OpConstant %float 0 49 %v2float = OpTypeVector %float 2 50 %16 = OpConstantComposite %v2float %float_0 %float_0 51%_ptr_Function_v2float = OpTypePointer Function %v2float 52 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 53 %bool = OpTypeBool 54 %false = OpConstantFalse %bool 55%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 56 %int = OpTypeInt 32 1 57 %int_0 = OpConstant %int 0 58 %float_n1 = OpConstant %float -1 59 %40 = OpConstantComposite %v2float %float_n1 %float_0 60 %v2bool = OpTypeVector %bool 2 61 %v3float = OpTypeVector %float 3 62 %float_1 = OpConstant %float 1 63 %53 = OpConstantComposite %v3float %float_n1 %float_0 %float_1 64 %v3bool = OpTypeVector %bool 3 65 %float_2 = OpConstant %float 2 66 %64 = OpConstantComposite %v4float %float_n1 %float_0 %float_1 %float_2 67 %v4bool = OpTypeVector %bool 4 68%_ptr_Function_v4float = OpTypePointer Function %v4float 69 %int_1 = OpConstant %int 1 70 %int_2 = OpConstant %int 2 71%_entrypoint_v = OpFunction %void None %12 72 %13 = OpLabel 73 %17 = OpVariable %_ptr_Function_v2float Function 74 OpStore %17 %16 75 %19 = OpFunctionCall %v4float %main %17 76 OpStore %sk_FragColor %19 77 OpReturn 78 OpFunctionEnd 79 %main = OpFunction %v4float None %20 80 %21 = OpFunctionParameter %_ptr_Function_v2float 81 %22 = OpLabel 82 %69 = OpVariable %_ptr_Function_v4float Function 83 %26 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 84 %30 = OpLoad %v4float %26 85 %31 = OpCompositeExtract %float %30 0 86 %25 = OpExtInst %float %1 Round %31 87 %33 = OpFOrdEqual %bool %25 %float_n1 88 OpSelectionMerge %35 None 89 OpBranchConditional %33 %34 %35 90 %34 = OpLabel 91 %37 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 92 %38 = OpLoad %v4float %37 93 %39 = OpVectorShuffle %v2float %38 %38 0 1 94 %36 = OpExtInst %v2float %1 Round %39 95 %41 = OpFOrdEqual %v2bool %36 %40 96 %43 = OpAll %bool %41 97 OpBranch %35 98 %35 = OpLabel 99 %44 = OpPhi %bool %false %22 %43 %34 100 OpSelectionMerge %46 None 101 OpBranchConditional %44 %45 %46 102 %45 = OpLabel 103 %48 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 104 %49 = OpLoad %v4float %48 105 %50 = OpVectorShuffle %v3float %49 %49 0 1 2 106 %47 = OpExtInst %v3float %1 Round %50 107 %54 = OpFOrdEqual %v3bool %47 %53 108 %56 = OpAll %bool %54 109 OpBranch %46 110 %46 = OpLabel 111 %57 = OpPhi %bool %false %35 %56 %45 112 OpSelectionMerge %59 None 113 OpBranchConditional %57 %58 %59 114 %58 = OpLabel 115 %61 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 116 %62 = OpLoad %v4float %61 117 %60 = OpExtInst %v4float %1 Round %62 118 %65 = OpFOrdEqual %v4bool %60 %64 119 %67 = OpAll %bool %65 120 OpBranch %59 121 %59 = OpLabel 122 %68 = OpPhi %bool %false %46 %67 %58 123 OpSelectionMerge %73 None 124 OpBranchConditional %68 %71 %72 125 %71 = OpLabel 126 %74 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 127 %76 = OpLoad %v4float %74 128 OpStore %69 %76 129 OpBranch %73 130 %72 = OpLabel 131 %77 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 132 %79 = OpLoad %v4float %77 133 OpStore %69 %79 134 OpBranch %73 135 %73 = OpLabel 136 %80 = OpLoad %v4float %69 137 OpReturnValue %80 138 OpFunctionEnd 139