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 %30 RelaxedPrecision 29 OpDecorate %31 RelaxedPrecision 30 OpDecorate %34 RelaxedPrecision 31 OpDecorate %35 RelaxedPrecision 32 OpDecorate %41 RelaxedPrecision 33 OpDecorate %42 RelaxedPrecision 34 OpDecorate %44 RelaxedPrecision 35 OpDecorate %45 RelaxedPrecision 36 OpDecorate %54 RelaxedPrecision 37 OpDecorate %55 RelaxedPrecision 38 OpDecorate %58 RelaxedPrecision 39 OpDecorate %59 RelaxedPrecision 40 OpDecorate %68 RelaxedPrecision 41 OpDecorate %70 RelaxedPrecision 42 OpDecorate %78 RelaxedPrecision 43 OpDecorate %79 RelaxedPrecision 44 OpDecorate %85 RelaxedPrecision 45 OpDecorate %86 RelaxedPrecision 46 OpDecorate %94 RelaxedPrecision 47 OpDecorate %95 RelaxedPrecision 48 OpDecorate %103 RelaxedPrecision 49 OpDecorate %111 RelaxedPrecision 50 OpDecorate %112 RelaxedPrecision 51 OpDecorate %115 RelaxedPrecision 52 OpDecorate %116 RelaxedPrecision 53 OpDecorate %123 RelaxedPrecision 54 OpDecorate %124 RelaxedPrecision 55 OpDecorate %127 RelaxedPrecision 56 OpDecorate %128 RelaxedPrecision 57 OpDecorate %136 RelaxedPrecision 58 OpDecorate %137 RelaxedPrecision 59 OpDecorate %140 RelaxedPrecision 60 OpDecorate %141 RelaxedPrecision 61 OpDecorate %149 RelaxedPrecision 62 OpDecorate %152 RelaxedPrecision 63 OpDecorate %159 RelaxedPrecision 64 OpDecorate %160 RelaxedPrecision 65 OpDecorate %166 RelaxedPrecision 66 OpDecorate %167 RelaxedPrecision 67 OpDecorate %174 RelaxedPrecision 68 OpDecorate %175 RelaxedPrecision 69 OpDecorate %182 RelaxedPrecision 70 OpDecorate %193 RelaxedPrecision 71 OpDecorate %196 RelaxedPrecision 72 OpDecorate %197 RelaxedPrecision 73 %float = OpTypeFloat 32 74 %v4float = OpTypeVector %float 4 75%_ptr_Output_v4float = OpTypePointer Output %v4float 76%sk_FragColor = OpVariable %_ptr_Output_v4float Output 77%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float %v4float 78%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 79 %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 80 %void = OpTypeVoid 81 %12 = OpTypeFunction %void 82 %float_0 = OpConstant %float 0 83 %v2float = OpTypeVector %float 2 84 %16 = OpConstantComposite %v2float %float_0 %float_0 85%_ptr_Function_v2float = OpTypePointer Function %v2float 86 %20 = OpTypeFunction %v4float %_ptr_Function_v2float 87 %bool = OpTypeBool 88 %false = OpConstantFalse %bool 89%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 90 %int = OpTypeInt 32 1 91 %int_0 = OpConstant %int 0 92 %int_1 = OpConstant %int 1 93 %v2bool = OpTypeVector %bool 2 94 %v3float = OpTypeVector %float 3 95 %v3bool = OpTypeVector %bool 3 96 %v4bool = OpTypeVector %bool 4 97 %92 = OpConstantComposite %v3float %float_0 %float_0 %float_0 98 %101 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0 99 %float_1 = OpConstant %float 1 100 %125 = OpConstantComposite %v2float %float_1 %float_1 101 %138 = OpConstantComposite %v3float %float_1 %float_1 %float_1 102 %150 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 103%_ptr_Function_v4float = OpTypePointer Function %v4float 104 %int_2 = OpConstant %int 2 105 %int_3 = OpConstant %int 3 106%_entrypoint_v = OpFunction %void None %12 107 %13 = OpLabel 108 %17 = OpVariable %_ptr_Function_v2float Function 109 OpStore %17 %16 110 %19 = OpFunctionCall %v4float %main %17 111 OpStore %sk_FragColor %19 112 OpReturn 113 OpFunctionEnd 114 %main = OpFunction %v4float None %20 115 %21 = OpFunctionParameter %_ptr_Function_v2float 116 %22 = OpLabel 117 %186 = OpVariable %_ptr_Function_v4float Function 118 %26 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 119 %30 = OpLoad %v4float %26 120 %31 = OpCompositeExtract %float %30 0 121 %25 = OpExtInst %float %1 Atan %31 122 %32 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 123 %34 = OpLoad %v4float %32 124 %35 = OpCompositeExtract %float %34 0 125 %36 = OpFOrdEqual %bool %25 %35 126 OpSelectionMerge %38 None 127 OpBranchConditional %36 %37 %38 128 %37 = OpLabel 129 %40 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 130 %41 = OpLoad %v4float %40 131 %42 = OpVectorShuffle %v2float %41 %41 0 1 132 %39 = OpExtInst %v2float %1 Atan %42 133 %43 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 134 %44 = OpLoad %v4float %43 135 %45 = OpVectorShuffle %v2float %44 %44 0 1 136 %46 = OpFOrdEqual %v2bool %39 %45 137 %48 = OpAll %bool %46 138 OpBranch %38 139 %38 = OpLabel 140 %49 = OpPhi %bool %false %22 %48 %37 141 OpSelectionMerge %51 None 142 OpBranchConditional %49 %50 %51 143 %50 = OpLabel 144 %53 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 145 %54 = OpLoad %v4float %53 146 %55 = OpVectorShuffle %v3float %54 %54 0 1 2 147 %52 = OpExtInst %v3float %1 Atan %55 148 %57 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 149 %58 = OpLoad %v4float %57 150 %59 = OpVectorShuffle %v3float %58 %58 0 1 2 151 %60 = OpFOrdEqual %v3bool %52 %59 152 %62 = OpAll %bool %60 153 OpBranch %51 154 %51 = OpLabel 155 %63 = OpPhi %bool %false %38 %62 %50 156 OpSelectionMerge %65 None 157 OpBranchConditional %63 %64 %65 158 %64 = OpLabel 159 %67 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 160 %68 = OpLoad %v4float %67 161 %66 = OpExtInst %v4float %1 Atan %68 162 %69 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 163 %70 = OpLoad %v4float %69 164 %71 = OpFOrdEqual %v4bool %66 %70 165 %73 = OpAll %bool %71 166 OpBranch %65 167 %65 = OpLabel 168 %74 = OpPhi %bool %false %51 %73 %64 169 OpSelectionMerge %76 None 170 OpBranchConditional %74 %75 %76 171 %75 = OpLabel 172 %77 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 173 %78 = OpLoad %v4float %77 174 %79 = OpCompositeExtract %float %78 0 175 %80 = OpFOrdEqual %bool %float_0 %79 176 OpBranch %76 177 %76 = OpLabel 178 %81 = OpPhi %bool %false %65 %80 %75 179 OpSelectionMerge %83 None 180 OpBranchConditional %81 %82 %83 181 %82 = OpLabel 182 %84 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 183 %85 = OpLoad %v4float %84 184 %86 = OpVectorShuffle %v2float %85 %85 0 1 185 %87 = OpFOrdEqual %v2bool %16 %86 186 %88 = OpAll %bool %87 187 OpBranch %83 188 %83 = OpLabel 189 %89 = OpPhi %bool %false %76 %88 %82 190 OpSelectionMerge %91 None 191 OpBranchConditional %89 %90 %91 192 %90 = OpLabel 193 %93 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 194 %94 = OpLoad %v4float %93 195 %95 = OpVectorShuffle %v3float %94 %94 0 1 2 196 %96 = OpFOrdEqual %v3bool %92 %95 197 %97 = OpAll %bool %96 198 OpBranch %91 199 %91 = OpLabel 200 %98 = OpPhi %bool %false %83 %97 %90 201 OpSelectionMerge %100 None 202 OpBranchConditional %98 %99 %100 203 %99 = OpLabel 204 %102 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 205 %103 = OpLoad %v4float %102 206 %104 = OpFOrdEqual %v4bool %101 %103 207 %105 = OpAll %bool %104 208 OpBranch %100 209 %100 = OpLabel 210 %106 = OpPhi %bool %false %91 %105 %99 211 OpSelectionMerge %108 None 212 OpBranchConditional %106 %107 %108 213 %107 = OpLabel 214 %110 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 215 %111 = OpLoad %v4float %110 216 %112 = OpCompositeExtract %float %111 0 217 %109 = OpExtInst %float %1 Atan2 %112 %float_1 218 %114 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 219 %115 = OpLoad %v4float %114 220 %116 = OpCompositeExtract %float %115 0 221 %117 = OpFOrdEqual %bool %109 %116 222 OpBranch %108 223 %108 = OpLabel 224 %118 = OpPhi %bool %false %100 %117 %107 225 OpSelectionMerge %120 None 226 OpBranchConditional %118 %119 %120 227 %119 = OpLabel 228 %122 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 229 %123 = OpLoad %v4float %122 230 %124 = OpVectorShuffle %v2float %123 %123 0 1 231 %121 = OpExtInst %v2float %1 Atan2 %124 %125 232 %126 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 233 %127 = OpLoad %v4float %126 234 %128 = OpVectorShuffle %v2float %127 %127 0 1 235 %129 = OpFOrdEqual %v2bool %121 %128 236 %130 = OpAll %bool %129 237 OpBranch %120 238 %120 = OpLabel 239 %131 = OpPhi %bool %false %108 %130 %119 240 OpSelectionMerge %133 None 241 OpBranchConditional %131 %132 %133 242 %132 = OpLabel 243 %135 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 244 %136 = OpLoad %v4float %135 245 %137 = OpVectorShuffle %v3float %136 %136 0 1 2 246 %134 = OpExtInst %v3float %1 Atan2 %137 %138 247 %139 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 248 %140 = OpLoad %v4float %139 249 %141 = OpVectorShuffle %v3float %140 %140 0 1 2 250 %142 = OpFOrdEqual %v3bool %134 %141 251 %143 = OpAll %bool %142 252 OpBranch %133 253 %133 = OpLabel 254 %144 = OpPhi %bool %false %120 %143 %132 255 OpSelectionMerge %146 None 256 OpBranchConditional %144 %145 %146 257 %145 = OpLabel 258 %148 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0 259 %149 = OpLoad %v4float %148 260 %147 = OpExtInst %v4float %1 Atan2 %149 %150 261 %151 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 262 %152 = OpLoad %v4float %151 263 %153 = OpFOrdEqual %v4bool %147 %152 264 %154 = OpAll %bool %153 265 OpBranch %146 266 %146 = OpLabel 267 %155 = OpPhi %bool %false %133 %154 %145 268 OpSelectionMerge %157 None 269 OpBranchConditional %155 %156 %157 270 %156 = OpLabel 271 %158 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 272 %159 = OpLoad %v4float %158 273 %160 = OpCompositeExtract %float %159 0 274 %161 = OpFOrdEqual %bool %float_0 %160 275 OpBranch %157 276 %157 = OpLabel 277 %162 = OpPhi %bool %false %146 %161 %156 278 OpSelectionMerge %164 None 279 OpBranchConditional %162 %163 %164 280 %163 = OpLabel 281 %165 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 282 %166 = OpLoad %v4float %165 283 %167 = OpVectorShuffle %v2float %166 %166 0 1 284 %168 = OpFOrdEqual %v2bool %16 %167 285 %169 = OpAll %bool %168 286 OpBranch %164 287 %164 = OpLabel 288 %170 = OpPhi %bool %false %157 %169 %163 289 OpSelectionMerge %172 None 290 OpBranchConditional %170 %171 %172 291 %171 = OpLabel 292 %173 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 293 %174 = OpLoad %v4float %173 294 %175 = OpVectorShuffle %v3float %174 %174 0 1 2 295 %176 = OpFOrdEqual %v3bool %92 %175 296 %177 = OpAll %bool %176 297 OpBranch %172 298 %172 = OpLabel 299 %178 = OpPhi %bool %false %164 %177 %171 300 OpSelectionMerge %180 None 301 OpBranchConditional %178 %179 %180 302 %179 = OpLabel 303 %181 = OpAccessChain %_ptr_Uniform_v4float %7 %int_1 304 %182 = OpLoad %v4float %181 305 %183 = OpFOrdEqual %v4bool %101 %182 306 %184 = OpAll %bool %183 307 OpBranch %180 308 %180 = OpLabel 309 %185 = OpPhi %bool %false %172 %184 %179 310 OpSelectionMerge %190 None 311 OpBranchConditional %185 %188 %189 312 %188 = OpLabel 313 %191 = OpAccessChain %_ptr_Uniform_v4float %7 %int_2 314 %193 = OpLoad %v4float %191 315 OpStore %186 %193 316 OpBranch %190 317 %189 = OpLabel 318 %194 = OpAccessChain %_ptr_Uniform_v4float %7 %int_3 319 %196 = OpLoad %v4float %194 320 OpStore %186 %196 321 OpBranch %190 322 %190 = OpLabel 323 %197 = OpLoad %v4float %186 324 OpReturnValue %197 325 OpFunctionEnd 326