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 %checkIntrinsicAsFunctionArg_bf3i3 "checkIntrinsicAsFunctionArg_bf3i3" 12 OpName %main "main" 13 OpName %value "value" 14 OpName %exp "exp" 15 OpName %result "result" 16 OpName %ok "ok" 17 OpName %funcOk "funcOk" 18 OpDecorate %sk_FragColor RelaxedPrecision 19 OpDecorate %sk_FragColor Location 0 20 OpDecorate %sk_FragColor Index 0 21 OpMemberDecorate %_UniformBuffer 0 Offset 0 22 OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision 23 OpMemberDecorate %_UniformBuffer 1 Offset 16 24 OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision 25 OpDecorate %_UniformBuffer Block 26 OpDecorate %8 Binding 0 27 OpDecorate %8 DescriptorSet 0 28 OpDecorate %54 RelaxedPrecision 29 OpDecorate %55 RelaxedPrecision 30 OpDecorate %57 RelaxedPrecision 31 OpDecorate %148 RelaxedPrecision 32 OpDecorate %157 RelaxedPrecision 33 OpDecorate %159 RelaxedPrecision 34 OpDecorate %160 RelaxedPrecision 35 %float = OpTypeFloat 32 36 %v4float = OpTypeVector %float 4 37%_ptr_Output_v4float = OpTypePointer Output %v4float 38%sk_FragColor = OpVariable %_ptr_Output_v4float Output 39%_UniformBuffer = OpTypeStruct %v4float %v4float 40%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer 41 %8 = OpVariable %_ptr_Uniform__UniformBuffer Uniform 42 %void = OpTypeVoid 43 %13 = OpTypeFunction %void 44 %float_0 = OpConstant %float 0 45 %v2float = OpTypeVector %float 2 46 %17 = OpConstantComposite %v2float %float_0 %float_0 47%_ptr_Function_v2float = OpTypePointer Function %v2float 48 %bool = OpTypeBool 49 %v3float = OpTypeVector %float 3 50%_ptr_Function_v3float = OpTypePointer Function %v3float 51 %int = OpTypeInt 32 1 52 %v3int = OpTypeVector %int 3 53%_ptr_Function_v3int = OpTypePointer Function %v3int 54 %27 = OpTypeFunction %bool %_ptr_Function_v3float %_ptr_Function_v3int 55 %false = OpConstantFalse %bool 56 %float_0_75 = OpConstant %float 0.75 57 %34 = OpConstantComposite %v3float %float_0_75 %float_0_75 %float_0_75 58 %v3bool = OpTypeVector %bool 3 59 %int_3 = OpConstant %int 3 60 %42 = OpConstantComposite %v3int %int_3 %int_3 %int_3 61 %46 = OpTypeFunction %v4float %_ptr_Function_v2float 62%_ptr_Function_v4float = OpTypePointer Function %v4float 63%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 64 %int_0 = OpConstant %int 0 65 %float_6 = OpConstant %float 6 66 %v4int = OpTypeVector %int 4 67%_ptr_Function_v4int = OpTypePointer Function %v4int 68 %v4bool = OpTypeVector %bool 4 69%_ptr_Function_v4bool = OpTypePointer Function %v4bool 70%_ptr_Function_int = OpTypePointer Function %int 71%_ptr_Function_float = OpTypePointer Function %float 72%_ptr_Function_bool = OpTypePointer Function %bool 73 %v2int = OpTypeVector %int 2 74%_ptr_Function_v2int = OpTypePointer Function %v2int 75 %int_1 = OpConstant %int 1 76 %int_2 = OpConstant %int 2 77%_entrypoint_v = OpFunction %void None %13 78 %14 = OpLabel 79 %18 = OpVariable %_ptr_Function_v2float Function 80 OpStore %18 %17 81 %20 = OpFunctionCall %v4float %main %18 82 OpStore %sk_FragColor %20 83 OpReturn 84 OpFunctionEnd 85%checkIntrinsicAsFunctionArg_bf3i3 = OpFunction %bool None %27 86 %28 = OpFunctionParameter %_ptr_Function_v3float 87 %29 = OpFunctionParameter %_ptr_Function_v3int 88 %30 = OpLabel 89 %32 = OpLoad %v3float %28 90 %35 = OpFOrdEqual %v3bool %32 %34 91 %37 = OpAll %bool %35 92 OpSelectionMerge %39 None 93 OpBranchConditional %37 %38 %39 94 %38 = OpLabel 95 %40 = OpLoad %v3int %29 96 %43 = OpIEqual %v3bool %40 %42 97 %44 = OpAll %bool %43 98 OpBranch %39 99 %39 = OpLabel 100 %45 = OpPhi %bool %false %30 %44 %38 101 OpReturnValue %45 102 OpFunctionEnd 103 %main = OpFunction %v4float None %46 104 %47 = OpFunctionParameter %_ptr_Function_v2float 105 %48 = OpLabel 106 %value = OpVariable %_ptr_Function_v4float Function 107 %exp = OpVariable %_ptr_Function_v4int Function 108 %result = OpVariable %_ptr_Function_v4float Function 109 %ok = OpVariable %_ptr_Function_v4bool Function 110 %69 = OpVariable %_ptr_Function_int Function 111 %87 = OpVariable %_ptr_Function_v2int Function 112 %107 = OpVariable %_ptr_Function_v3int Function 113 %124 = OpVariable %_ptr_Function_v4int Function 114 %funcOk = OpVariable %_ptr_Function_bool Function 115 %138 = OpVariable %_ptr_Function_v3int Function 116 %143 = OpVariable %_ptr_Function_v3float Function 117 %145 = OpVariable %_ptr_Function_v3int Function 118 %152 = OpVariable %_ptr_Function_v4float Function 119 %51 = OpAccessChain %_ptr_Uniform_v4float %8 %int_0 120 %54 = OpLoad %v4float %51 121 %55 = OpVectorShuffle %v4float %54 %54 1 1 1 1 122 %57 = OpVectorTimesScalar %v4float %55 %float_6 123 OpStore %value %57 124 %66 = OpCompositeExtract %float %57 0 125 %67 = OpAccessChain %_ptr_Function_int %exp %int_0 126 %65 = OpExtInst %float %1 Frexp %66 %69 127 %70 = OpLoad %int %69 128 OpStore %67 %70 129 %71 = OpAccessChain %_ptr_Function_float %result %int_0 130 OpStore %71 %65 131 %73 = OpLoad %v4float %result 132 %74 = OpCompositeExtract %float %73 0 133 %75 = OpFOrdEqual %bool %74 %float_0_75 134 OpSelectionMerge %77 None 135 OpBranchConditional %75 %76 %77 136 %76 = OpLabel 137 %78 = OpLoad %v4int %exp 138 %79 = OpCompositeExtract %int %78 0 139 %80 = OpIEqual %bool %79 %int_3 140 OpBranch %77 141 %77 = OpLabel 142 %81 = OpPhi %bool %false %48 %80 %76 143 %82 = OpAccessChain %_ptr_Function_bool %ok %int_0 144 OpStore %82 %81 145 %85 = OpLoad %v4float %value 146 %86 = OpVectorShuffle %v2float %85 %85 0 1 147 %84 = OpExtInst %v2float %1 Frexp %86 %87 148 %90 = OpLoad %v2int %87 149 %91 = OpLoad %v4int %exp 150 %92 = OpVectorShuffle %v4int %91 %90 4 5 2 3 151 OpStore %exp %92 152 %93 = OpLoad %v4float %result 153 %94 = OpVectorShuffle %v4float %93 %84 4 5 2 3 154 OpStore %result %94 155 %95 = OpCompositeExtract %float %94 1 156 %96 = OpFOrdEqual %bool %95 %float_0_75 157 OpSelectionMerge %98 None 158 OpBranchConditional %96 %97 %98 159 %97 = OpLabel 160 %99 = OpCompositeExtract %int %92 1 161 %100 = OpIEqual %bool %99 %int_3 162 OpBranch %98 163 %98 = OpLabel 164 %101 = OpPhi %bool %false %77 %100 %97 165 %102 = OpAccessChain %_ptr_Function_bool %ok %int_1 166 OpStore %102 %101 167 %105 = OpLoad %v4float %value 168 %106 = OpVectorShuffle %v3float %105 %105 0 1 2 169 %104 = OpExtInst %v3float %1 Frexp %106 %107 170 %108 = OpLoad %v3int %107 171 %109 = OpLoad %v4int %exp 172 %110 = OpVectorShuffle %v4int %109 %108 4 5 6 3 173 OpStore %exp %110 174 %111 = OpLoad %v4float %result 175 %112 = OpVectorShuffle %v4float %111 %104 4 5 6 3 176 OpStore %result %112 177 %113 = OpCompositeExtract %float %112 2 178 %114 = OpFOrdEqual %bool %113 %float_0_75 179 OpSelectionMerge %116 None 180 OpBranchConditional %114 %115 %116 181 %115 = OpLabel 182 %117 = OpCompositeExtract %int %110 2 183 %118 = OpIEqual %bool %117 %int_3 184 OpBranch %116 185 %116 = OpLabel 186 %119 = OpPhi %bool %false %98 %118 %115 187 %120 = OpAccessChain %_ptr_Function_bool %ok %int_2 188 OpStore %120 %119 189 %123 = OpLoad %v4float %value 190 %122 = OpExtInst %v4float %1 Frexp %123 %124 191 %125 = OpLoad %v4int %124 192 OpStore %exp %125 193 OpStore %result %122 194 %126 = OpCompositeExtract %float %122 3 195 %127 = OpFOrdEqual %bool %126 %float_0_75 196 OpSelectionMerge %129 None 197 OpBranchConditional %127 %128 %129 198 %128 = OpLabel 199 %130 = OpCompositeExtract %int %125 3 200 %131 = OpIEqual %bool %130 %int_3 201 OpBranch %129 202 %129 = OpLabel 203 %132 = OpPhi %bool %false %116 %131 %128 204 %133 = OpAccessChain %_ptr_Function_bool %ok %int_3 205 OpStore %133 %132 206 %136 = OpLoad %v4float %value 207 %137 = OpVectorShuffle %v3float %136 %136 3 2 1 208 %135 = OpExtInst %v3float %1 Frexp %137 %138 209 %139 = OpLoad %v3int %138 210 %140 = OpLoad %v4int %exp 211 %141 = OpVectorShuffle %v4int %140 %139 5 1 4 6 212 OpStore %exp %141 213 %142 = OpVectorShuffle %v3float %135 %135 1 0 2 214 OpStore %143 %142 215 %144 = OpVectorShuffle %v3int %141 %141 1 0 2 216 OpStore %145 %144 217 %146 = OpFunctionCall %bool %checkIntrinsicAsFunctionArg_bf3i3 %143 %145 218 OpStore %funcOk %146 219 %148 = OpLoad %v4bool %ok 220 %147 = OpAll %bool %148 221 OpSelectionMerge %150 None 222 OpBranchConditional %147 %149 %150 223 %149 = OpLabel 224 OpBranch %150 225 %150 = OpLabel 226 %151 = OpPhi %bool %false %129 %146 %149 227 OpSelectionMerge %155 None 228 OpBranchConditional %151 %153 %154 229 %153 = OpLabel 230 %156 = OpAccessChain %_ptr_Uniform_v4float %8 %int_0 231 %157 = OpLoad %v4float %156 232 OpStore %152 %157 233 OpBranch %155 234 %154 = OpLabel 235 %158 = OpAccessChain %_ptr_Uniform_v4float %8 %int_1 236 %159 = OpLoad %v4float %158 237 OpStore %152 %159 238 OpBranch %155 239 %155 = OpLabel 240 %160 = OpLoad %v4float %152 241 OpReturnValue %160 242 OpFunctionEnd 243