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 "inputVal" 9 OpMemberName %_UniformBuffer 1 "expected" 10 OpMemberName %_UniformBuffer 2 "colorGreen" 11 OpMemberName %_UniformBuffer 3 "colorRed" 12 OpName %_entrypoint_v "_entrypoint_v" 13 OpName %main "main" 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 OpMemberDecorate %_UniformBuffer 2 Offset 32 22 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision 23 OpMemberDecorate %_UniformBuffer 3 Offset 48 24 OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision 25 OpDecorate %_UniformBuffer Block 26 OpDecorate %7 Binding 0 27 OpDecorate %7 DescriptorSet 0 28 OpDecorate %25 RelaxedPrecision 29 OpDecorate %30 RelaxedPrecision 30 OpDecorate %31 RelaxedPrecision 31 OpDecorate %34 RelaxedPrecision 32 OpDecorate %35 RelaxedPrecision 33 OpDecorate %39 RelaxedPrecision 34 OpDecorate %41 RelaxedPrecision 35 OpDecorate %42 RelaxedPrecision 36 OpDecorate %44 RelaxedPrecision 37 OpDecorate %45 RelaxedPrecision 38 OpDecorate %52 RelaxedPrecision 39 OpDecorate %54 RelaxedPrecision 40 OpDecorate %55 RelaxedPrecision 41 OpDecorate %58 RelaxedPrecision 42 OpDecorate %59 RelaxedPrecision 43 OpDecorate %66 RelaxedPrecision 44 OpDecorate %68 RelaxedPrecision 45 OpDecorate %70 RelaxedPrecision 46 OpDecorate %79 RelaxedPrecision 47 OpDecorate %80 RelaxedPrecision 48 OpDecorate %87 RelaxedPrecision 49 OpDecorate %88 RelaxedPrecision 50 OpDecorate %96 RelaxedPrecision 51 OpDecorate %97 RelaxedPrecision 52 OpDecorate %105 RelaxedPrecision 53 OpDecorate %116 RelaxedPrecision 54 OpDecorate %119 RelaxedPrecision 55 OpDecorate %120 RelaxedPrecision 56 %float = OpTypeFloat 32 57 %v4float = OpTypeVector %float 4 58%_ptr_Output_v4float = OpTypePointer Output %v4float 59%sk_FragColor = OpVariable %_ptr_Output_v4float Output 60%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float 61%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 62 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 63 %void = OpTypeVoid 64 %12 = OpTypeFunction %void 65 %float_0 = OpConstant %float 0 66 %v2float = OpTypeVector %float 2 67 %16 = OpConstantComposite %v2float %float_0 %float_0 68%_ptr_Function_v2float = OpTypePointer Function %v2float 69 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 70 %bool = OpTypeBool 71 %false = OpConstantFalse %bool 72%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 73 %int = OpTypeInt 32 1 74 %int_0 = OpConstant %int 0 75 %int_1 = OpConstant %int 1 76 %v2bool = OpTypeVector %bool 2 77 %v3float = OpTypeVector %float 3 78 %v3bool = OpTypeVector %bool 3 79 %v4bool = OpTypeVector %bool 4 80 %float_1 = OpConstant %float 1 81 %85 = OpConstantComposite %v2float %float_1 %float_1 82 %94 = OpConstantComposite %v3float %float_1 %float_1 %float_1 83 %103 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 84%_ptr_Function_v4float = OpTypePointer Function %v4float 85 %int_2 = OpConstant %int 2 86 %int_3 = OpConstant %int 3 87%_entrypoint_v = OpFunction %void None %12 88 %13 = OpLabel 89 %17 = OpVariable %_ptr_Function_v2float Function 90 OpStore %17 %16 91 %19 = OpFunctionCall %v4float %main %17 92 OpStore %sk_FragColor %19 93 OpReturn 94 OpFunctionEnd 95 %main = OpFunction %v4float None %20 96 %21 = OpFunctionParameter %_ptr_Function_v2float 97 %22 = OpLabel 98 %109 = OpVariable %_ptr_Function_v4float Function 99 %26 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 100 %30 = OpLoad %v4float %26 101 %31 = OpCompositeExtract %float %30 0 102 %25 = OpExtInst %float %1 Cos %31 103 %32 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 104 %34 = OpLoad %v4float %32 105 %35 = OpCompositeExtract %float %34 0 106 %36 = OpFOrdEqual %bool %25 %35 107 OpSelectionMerge %38 None 108 OpBranchConditional %36 %37 %38 109 %37 = OpLabel 110 %40 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 111 %41 = OpLoad %v4float %40 112 %42 = OpVectorShuffle %v2float %41 %41 0 1 113 %39 = OpExtInst %v2float %1 Cos %42 114 %43 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 115 %44 = OpLoad %v4float %43 116 %45 = OpVectorShuffle %v2float %44 %44 0 1 117 %46 = OpFOrdEqual %v2bool %39 %45 118 %48 = OpAll %bool %46 119 OpBranch %38 120 %38 = OpLabel 121 %49 = OpPhi %bool %false %22 %48 %37 122 OpSelectionMerge %51 None 123 OpBranchConditional %49 %50 %51 124 %50 = OpLabel 125 %53 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 126 %54 = OpLoad %v4float %53 127 %55 = OpVectorShuffle %v3float %54 %54 0 1 2 128 %52 = OpExtInst %v3float %1 Cos %55 129 %57 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 130 %58 = OpLoad %v4float %57 131 %59 = OpVectorShuffle %v3float %58 %58 0 1 2 132 %60 = OpFOrdEqual %v3bool %52 %59 133 %62 = OpAll %bool %60 134 OpBranch %51 135 %51 = OpLabel 136 %63 = OpPhi %bool %false %38 %62 %50 137 OpSelectionMerge %65 None 138 OpBranchConditional %63 %64 %65 139 %64 = OpLabel 140 %67 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 141 %68 = OpLoad %v4float %67 142 %66 = OpExtInst %v4float %1 Cos %68 143 %69 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 144 %70 = OpLoad %v4float %69 145 %71 = OpFOrdEqual %v4bool %66 %70 146 %73 = OpAll %bool %71 147 OpBranch %65 148 %65 = OpLabel 149 %74 = OpPhi %bool %false %51 %73 %64 150 OpSelectionMerge %76 None 151 OpBranchConditional %74 %75 %76 152 %75 = OpLabel 153 %78 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 154 %79 = OpLoad %v4float %78 155 %80 = OpCompositeExtract %float %79 0 156 %81 = OpFOrdEqual %bool %float_1 %80 157 OpBranch %76 158 %76 = OpLabel 159 %82 = OpPhi %bool %false %65 %81 %75 160 OpSelectionMerge %84 None 161 OpBranchConditional %82 %83 %84 162 %83 = OpLabel 163 %86 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 164 %87 = OpLoad %v4float %86 165 %88 = OpVectorShuffle %v2float %87 %87 0 1 166 %89 = OpFOrdEqual %v2bool %85 %88 167 %90 = OpAll %bool %89 168 OpBranch %84 169 %84 = OpLabel 170 %91 = OpPhi %bool %false %76 %90 %83 171 OpSelectionMerge %93 None 172 OpBranchConditional %91 %92 %93 173 %92 = OpLabel 174 %95 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 175 %96 = OpLoad %v4float %95 176 %97 = OpVectorShuffle %v3float %96 %96 0 1 2 177 %98 = OpFOrdEqual %v3bool %94 %97 178 %99 = OpAll %bool %98 179 OpBranch %93 180 %93 = OpLabel 181 %100 = OpPhi %bool %false %84 %99 %92 182 OpSelectionMerge %102 None 183 OpBranchConditional %100 %101 %102 184 %101 = OpLabel 185 %104 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 186 %105 = OpLoad %v4float %104 187 %106 = OpFOrdEqual %v4bool %103 %105 188 %107 = OpAll %bool %106 189 OpBranch %102 190 %102 = OpLabel 191 %108 = OpPhi %bool %false %93 %107 %101 192 OpSelectionMerge %113 None 193 OpBranchConditional %108 %111 %112 194 %111 = OpLabel 195 %114 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 196 %116 = OpLoad %v4float %114 197 OpStore %109 %116 198 OpBranch %113 199 %112 = OpLabel 200 %117 = OpAccessChain %_ptr_Uniform_v4float %7 %int_3 201 %119 = OpLoad %v4float %117 202 OpStore %109 %119 203 OpBranch %113 204 %113 = OpLabel 205 %120 = OpLoad %v4float %109 206 OpReturnValue %120 207 OpFunctionEnd 208