blob: 943e71faba368f327e019bbaba1ec8a9482f5175 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
OpExecutionMode %_entrypoint_v OriginUpperLeft
OpName %sk_FragColor "sk_FragColor"
OpName %sk_Clockwise "sk_Clockwise"
OpName %_UniformBuffer "_UniformBuffer"
OpMemberName %_UniformBuffer 0 "colorGreen"
OpMemberName %_UniformBuffer 1 "colorRed"
OpMemberName %_UniformBuffer 2 "colorWhite"
OpName %_entrypoint_v "_entrypoint_v"
OpName %out_half_vh "out_half_vh"
OpName %out_half2_vh2 "out_half2_vh2"
OpName %out_half3_vh3 "out_half3_vh3"
OpName %out_half4_vh4 "out_half4_vh4"
OpName %out_half2x2_vh22 "out_half2x2_vh22"
OpName %out_half3x3_vh33 "out_half3x3_vh33"
OpName %out_half4x4_vh44 "out_half4x4_vh44"
OpName %out_int_vi "out_int_vi"
OpName %out_int2_vi2 "out_int2_vi2"
OpName %out_int3_vi3 "out_int3_vi3"
OpName %out_int4_vi4 "out_int4_vi4"
OpName %out_float_vf "out_float_vf"
OpName %out_float2_vf2 "out_float2_vf2"
OpName %out_float3_vf3 "out_float3_vf3"
OpName %out_float4_vf4 "out_float4_vf4"
OpName %out_float2x2_vf22 "out_float2x2_vf22"
OpName %out_float3x3_vf33 "out_float3x3_vf33"
OpName %out_float4x4_vf44 "out_float4x4_vf44"
OpName %out_bool_vb "out_bool_vb"
OpName %out_bool2_vb2 "out_bool2_vb2"
OpName %out_bool3_vb3 "out_bool3_vb3"
OpName %out_bool4_vb4 "out_bool4_vb4"
OpName %main "main"
OpName %h "h"
OpName %h2 "h2"
OpName %h3 "h3"
OpName %h4 "h4"
OpName %h2x2 "h2x2"
OpName %h3x3 "h3x3"
OpName %h4x4 "h4x4"
OpName %i "i"
OpName %i2 "i2"
OpName %i3 "i3"
OpName %i4 "i4"
OpName %f "f"
OpName %f2 "f2"
OpName %f3 "f3"
OpName %f4 "f4"
OpName %f2x2 "f2x2"
OpName %f3x3 "f3x3"
OpName %f4x4 "f4x4"
OpName %b "b"
OpName %b2 "b2"
OpName %b3 "b3"
OpName %b4 "b4"
OpName %ok "ok"
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %sk_Clockwise BuiltIn FrontFacing
OpMemberDecorate %_UniformBuffer 0 Offset 0
OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 1 Offset 16
OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
OpMemberDecorate %_UniformBuffer 2 Offset 32
OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
OpDecorate %_UniformBuffer Block
OpDecorate %32 Binding 0
OpDecorate %32 DescriptorSet 0
OpDecorate %53 RelaxedPrecision
OpDecorate %54 RelaxedPrecision
OpDecorate %59 RelaxedPrecision
OpDecorate %60 RelaxedPrecision
OpDecorate %61 RelaxedPrecision
OpDecorate %68 RelaxedPrecision
OpDecorate %69 RelaxedPrecision
OpDecorate %70 RelaxedPrecision
OpDecorate %76 RelaxedPrecision
OpDecorate %77 RelaxedPrecision
OpDecorate %78 RelaxedPrecision
OpDecorate %85 RelaxedPrecision
OpDecorate %86 RelaxedPrecision
OpDecorate %87 RelaxedPrecision
OpDecorate %88 RelaxedPrecision
OpDecorate %89 RelaxedPrecision
OpDecorate %96 RelaxedPrecision
OpDecorate %97 RelaxedPrecision
OpDecorate %98 RelaxedPrecision
OpDecorate %99 RelaxedPrecision
OpDecorate %100 RelaxedPrecision
OpDecorate %101 RelaxedPrecision
OpDecorate %108 RelaxedPrecision
OpDecorate %109 RelaxedPrecision
OpDecorate %110 RelaxedPrecision
OpDecorate %111 RelaxedPrecision
OpDecorate %112 RelaxedPrecision
OpDecorate %113 RelaxedPrecision
OpDecorate %114 RelaxedPrecision
OpDecorate %120 RelaxedPrecision
OpDecorate %121 RelaxedPrecision
OpDecorate %129 RelaxedPrecision
OpDecorate %130 RelaxedPrecision
OpDecorate %139 RelaxedPrecision
OpDecorate %140 RelaxedPrecision
OpDecorate %149 RelaxedPrecision
OpDecorate %150 RelaxedPrecision
OpDecorate %156 RelaxedPrecision
OpDecorate %157 RelaxedPrecision
OpDecorate %161 RelaxedPrecision
OpDecorate %162 RelaxedPrecision
OpDecorate %167 RelaxedPrecision
OpDecorate %168 RelaxedPrecision
OpDecorate %173 RelaxedPrecision
OpDecorate %174 RelaxedPrecision
OpDecorate %179 RelaxedPrecision
OpDecorate %180 RelaxedPrecision
OpDecorate %187 RelaxedPrecision
OpDecorate %188 RelaxedPrecision
OpDecorate %196 RelaxedPrecision
OpDecorate %197 RelaxedPrecision
OpDecorate %208 RelaxedPrecision
OpDecorate %209 RelaxedPrecision
OpDecorate %217 RelaxedPrecision
OpDecorate %218 RelaxedPrecision
OpDecorate %227 RelaxedPrecision
OpDecorate %228 RelaxedPrecision
OpDecorate %237 RelaxedPrecision
OpDecorate %238 RelaxedPrecision
OpDecorate %h RelaxedPrecision
OpDecorate %245 RelaxedPrecision
OpDecorate %247 RelaxedPrecision
OpDecorate %h2 RelaxedPrecision
OpDecorate %249 RelaxedPrecision
OpDecorate %251 RelaxedPrecision
OpDecorate %h3 RelaxedPrecision
OpDecorate %253 RelaxedPrecision
OpDecorate %255 RelaxedPrecision
OpDecorate %h4 RelaxedPrecision
OpDecorate %257 RelaxedPrecision
OpDecorate %259 RelaxedPrecision
OpDecorate %262 RelaxedPrecision
OpDecorate %264 RelaxedPrecision
OpDecorate %265 RelaxedPrecision
OpDecorate %267 RelaxedPrecision
OpDecorate %268 RelaxedPrecision
OpDecorate %269 RelaxedPrecision
OpDecorate %270 RelaxedPrecision
OpDecorate %272 RelaxedPrecision
OpDecorate %273 RelaxedPrecision
OpDecorate %274 RelaxedPrecision
OpDecorate %h2x2 RelaxedPrecision
OpDecorate %276 RelaxedPrecision
OpDecorate %278 RelaxedPrecision
OpDecorate %h3x3 RelaxedPrecision
OpDecorate %280 RelaxedPrecision
OpDecorate %282 RelaxedPrecision
OpDecorate %h4x4 RelaxedPrecision
OpDecorate %284 RelaxedPrecision
OpDecorate %286 RelaxedPrecision
OpDecorate %288 RelaxedPrecision
OpDecorate %290 RelaxedPrecision
OpDecorate %294 RelaxedPrecision
OpDecorate %296 RelaxedPrecision
OpDecorate %300 RelaxedPrecision
OpDecorate %302 RelaxedPrecision
OpDecorate %401 RelaxedPrecision
OpDecorate %402 RelaxedPrecision
OpDecorate %403 RelaxedPrecision
OpDecorate %404 RelaxedPrecision
OpDecorate %405 RelaxedPrecision
OpDecorate %406 RelaxedPrecision
OpDecorate %407 RelaxedPrecision
OpDecorate %408 RelaxedPrecision
OpDecorate %409 RelaxedPrecision
OpDecorate %410 RelaxedPrecision
OpDecorate %412 RelaxedPrecision
OpDecorate %413 RelaxedPrecision
OpDecorate %414 RelaxedPrecision
OpDecorate %416 RelaxedPrecision
OpDecorate %417 RelaxedPrecision
OpDecorate %418 RelaxedPrecision
OpDecorate %420 RelaxedPrecision
OpDecorate %421 RelaxedPrecision
OpDecorate %422 RelaxedPrecision
OpDecorate %467 RelaxedPrecision
OpDecorate %470 RelaxedPrecision
OpDecorate %475 RelaxedPrecision
OpDecorate %480 RelaxedPrecision
OpDecorate %489 RelaxedPrecision
OpDecorate %491 RelaxedPrecision
OpDecorate %492 RelaxedPrecision
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%sk_FragColor = OpVariable %_ptr_Output_v4float Output
%bool = OpTypeBool
%_ptr_Input_bool = OpTypePointer Input %bool
%sk_Clockwise = OpVariable %_ptr_Input_bool Input
%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float
%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
%32 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
%void = OpTypeVoid
%37 = OpTypeFunction %void
%float_0 = OpConstant %float 0
%v2float = OpTypeVector %float 2
%41 = OpConstantComposite %v2float %float_0 %float_0
%_ptr_Function_v2float = OpTypePointer Function %v2float
%_ptr_Function_float = OpTypePointer Function %float
%46 = OpTypeFunction %void %_ptr_Function_float
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%int = OpTypeInt 32 1
%int_2 = OpConstant %int 2
%55 = OpTypeFunction %void %_ptr_Function_v2float
%v3float = OpTypeVector %float 3
%_ptr_Function_v3float = OpTypePointer Function %v3float
%64 = OpTypeFunction %void %_ptr_Function_v3float
%_ptr_Function_v4float = OpTypePointer Function %v4float
%72 = OpTypeFunction %void %_ptr_Function_v4float
%mat2v2float = OpTypeMatrix %v2float 2
%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float
%81 = OpTypeFunction %void %_ptr_Function_mat2v2float
%mat3v3float = OpTypeMatrix %v3float 3
%_ptr_Function_mat3v3float = OpTypePointer Function %mat3v3float
%92 = OpTypeFunction %void %_ptr_Function_mat3v3float
%mat4v4float = OpTypeMatrix %v4float 4
%_ptr_Function_mat4v4float = OpTypePointer Function %mat4v4float
%104 = OpTypeFunction %void %_ptr_Function_mat4v4float
%_ptr_Function_int = OpTypePointer Function %int
%116 = OpTypeFunction %void %_ptr_Function_int
%v2int = OpTypeVector %int 2
%_ptr_Function_v2int = OpTypePointer Function %v2int
%125 = OpTypeFunction %void %_ptr_Function_v2int
%v3int = OpTypeVector %int 3
%_ptr_Function_v3int = OpTypePointer Function %v3int
%135 = OpTypeFunction %void %_ptr_Function_v3int
%v4int = OpTypeVector %int 4
%_ptr_Function_v4int = OpTypePointer Function %v4int
%145 = OpTypeFunction %void %_ptr_Function_v4int
%_ptr_Function_bool = OpTypePointer Function %bool
%204 = OpTypeFunction %void %_ptr_Function_bool
%v2bool = OpTypeVector %bool 2
%_ptr_Function_v2bool = OpTypePointer Function %v2bool
%213 = OpTypeFunction %void %_ptr_Function_v2bool
%v3bool = OpTypeVector %bool 3
%_ptr_Function_v3bool = OpTypePointer Function %v3bool
%223 = OpTypeFunction %void %_ptr_Function_v3bool
%v4bool = OpTypeVector %bool 4
%_ptr_Function_v4bool = OpTypePointer Function %v4bool
%233 = OpTypeFunction %void %_ptr_Function_v4bool
%241 = OpTypeFunction %v4float %_ptr_Function_v2float
%int_1 = OpConstant %int 1
%int_3 = OpConstant %int 3
%int_0 = OpConstant %int 0
%true = OpConstantTrue %bool
%false = OpConstantFalse %bool
%float_1 = OpConstant %float 1
%_entrypoint_v = OpFunction %void None %37
%38 = OpLabel
%42 = OpVariable %_ptr_Function_v2float Function
OpStore %42 %41
%44 = OpFunctionCall %v4float %main %42
OpStore %sk_FragColor %44
OpReturn
OpFunctionEnd
%out_half_vh = OpFunction %void None %46
%47 = OpFunctionParameter %_ptr_Function_float
%48 = OpLabel
%49 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%53 = OpLoad %v4float %49
%54 = OpCompositeExtract %float %53 0
OpStore %47 %54
OpReturn
OpFunctionEnd
%out_half2_vh2 = OpFunction %void None %55
%56 = OpFunctionParameter %_ptr_Function_v2float
%57 = OpLabel
%58 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%59 = OpLoad %v4float %58
%60 = OpCompositeExtract %float %59 1
%61 = OpCompositeConstruct %v2float %60 %60
OpStore %56 %61
OpReturn
OpFunctionEnd
%out_half3_vh3 = OpFunction %void None %64
%65 = OpFunctionParameter %_ptr_Function_v3float
%66 = OpLabel
%67 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%68 = OpLoad %v4float %67
%69 = OpCompositeExtract %float %68 2
%70 = OpCompositeConstruct %v3float %69 %69 %69
OpStore %65 %70
OpReturn
OpFunctionEnd
%out_half4_vh4 = OpFunction %void None %72
%73 = OpFunctionParameter %_ptr_Function_v4float
%74 = OpLabel
%75 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%76 = OpLoad %v4float %75
%77 = OpCompositeExtract %float %76 3
%78 = OpCompositeConstruct %v4float %77 %77 %77 %77
OpStore %73 %78
OpReturn
OpFunctionEnd
%out_half2x2_vh22 = OpFunction %void None %81
%82 = OpFunctionParameter %_ptr_Function_mat2v2float
%83 = OpLabel
%84 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%85 = OpLoad %v4float %84
%86 = OpCompositeExtract %float %85 0
%87 = OpCompositeConstruct %v2float %86 %float_0
%88 = OpCompositeConstruct %v2float %float_0 %86
%89 = OpCompositeConstruct %mat2v2float %87 %88
OpStore %82 %89
OpReturn
OpFunctionEnd
%out_half3x3_vh33 = OpFunction %void None %92
%93 = OpFunctionParameter %_ptr_Function_mat3v3float
%94 = OpLabel
%95 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%96 = OpLoad %v4float %95
%97 = OpCompositeExtract %float %96 1
%98 = OpCompositeConstruct %v3float %97 %float_0 %float_0
%99 = OpCompositeConstruct %v3float %float_0 %97 %float_0
%100 = OpCompositeConstruct %v3float %float_0 %float_0 %97
%101 = OpCompositeConstruct %mat3v3float %98 %99 %100
OpStore %93 %101
OpReturn
OpFunctionEnd
%out_half4x4_vh44 = OpFunction %void None %104
%105 = OpFunctionParameter %_ptr_Function_mat4v4float
%106 = OpLabel
%107 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%108 = OpLoad %v4float %107
%109 = OpCompositeExtract %float %108 2
%110 = OpCompositeConstruct %v4float %109 %float_0 %float_0 %float_0
%111 = OpCompositeConstruct %v4float %float_0 %109 %float_0 %float_0
%112 = OpCompositeConstruct %v4float %float_0 %float_0 %109 %float_0
%113 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %109
%114 = OpCompositeConstruct %mat4v4float %110 %111 %112 %113
OpStore %105 %114
OpReturn
OpFunctionEnd
%out_int_vi = OpFunction %void None %116
%117 = OpFunctionParameter %_ptr_Function_int
%118 = OpLabel
%119 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%120 = OpLoad %v4float %119
%121 = OpCompositeExtract %float %120 0
%122 = OpConvertFToS %int %121
OpStore %117 %122
OpReturn
OpFunctionEnd
%out_int2_vi2 = OpFunction %void None %125
%126 = OpFunctionParameter %_ptr_Function_v2int
%127 = OpLabel
%128 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%129 = OpLoad %v4float %128
%130 = OpCompositeExtract %float %129 1
%131 = OpConvertFToS %int %130
%132 = OpCompositeConstruct %v2int %131 %131
OpStore %126 %132
OpReturn
OpFunctionEnd
%out_int3_vi3 = OpFunction %void None %135
%136 = OpFunctionParameter %_ptr_Function_v3int
%137 = OpLabel
%138 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%139 = OpLoad %v4float %138
%140 = OpCompositeExtract %float %139 2
%141 = OpConvertFToS %int %140
%142 = OpCompositeConstruct %v3int %141 %141 %141
OpStore %136 %142
OpReturn
OpFunctionEnd
%out_int4_vi4 = OpFunction %void None %145
%146 = OpFunctionParameter %_ptr_Function_v4int
%147 = OpLabel
%148 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%149 = OpLoad %v4float %148
%150 = OpCompositeExtract %float %149 3
%151 = OpConvertFToS %int %150
%152 = OpCompositeConstruct %v4int %151 %151 %151 %151
OpStore %146 %152
OpReturn
OpFunctionEnd
%out_float_vf = OpFunction %void None %46
%153 = OpFunctionParameter %_ptr_Function_float
%154 = OpLabel
%155 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%156 = OpLoad %v4float %155
%157 = OpCompositeExtract %float %156 0
OpStore %153 %157
OpReturn
OpFunctionEnd
%out_float2_vf2 = OpFunction %void None %55
%158 = OpFunctionParameter %_ptr_Function_v2float
%159 = OpLabel
%160 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%161 = OpLoad %v4float %160
%162 = OpCompositeExtract %float %161 1
%163 = OpCompositeConstruct %v2float %162 %162
OpStore %158 %163
OpReturn
OpFunctionEnd
%out_float3_vf3 = OpFunction %void None %64
%164 = OpFunctionParameter %_ptr_Function_v3float
%165 = OpLabel
%166 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%167 = OpLoad %v4float %166
%168 = OpCompositeExtract %float %167 2
%169 = OpCompositeConstruct %v3float %168 %168 %168
OpStore %164 %169
OpReturn
OpFunctionEnd
%out_float4_vf4 = OpFunction %void None %72
%170 = OpFunctionParameter %_ptr_Function_v4float
%171 = OpLabel
%172 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%173 = OpLoad %v4float %172
%174 = OpCompositeExtract %float %173 3
%175 = OpCompositeConstruct %v4float %174 %174 %174 %174
OpStore %170 %175
OpReturn
OpFunctionEnd
%out_float2x2_vf22 = OpFunction %void None %81
%176 = OpFunctionParameter %_ptr_Function_mat2v2float
%177 = OpLabel
%178 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%179 = OpLoad %v4float %178
%180 = OpCompositeExtract %float %179 0
%181 = OpCompositeConstruct %v2float %180 %float_0
%182 = OpCompositeConstruct %v2float %float_0 %180
%183 = OpCompositeConstruct %mat2v2float %181 %182
OpStore %176 %183
OpReturn
OpFunctionEnd
%out_float3x3_vf33 = OpFunction %void None %92
%184 = OpFunctionParameter %_ptr_Function_mat3v3float
%185 = OpLabel
%186 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%187 = OpLoad %v4float %186
%188 = OpCompositeExtract %float %187 1
%189 = OpCompositeConstruct %v3float %188 %float_0 %float_0
%190 = OpCompositeConstruct %v3float %float_0 %188 %float_0
%191 = OpCompositeConstruct %v3float %float_0 %float_0 %188
%192 = OpCompositeConstruct %mat3v3float %189 %190 %191
OpStore %184 %192
OpReturn
OpFunctionEnd
%out_float4x4_vf44 = OpFunction %void None %104
%193 = OpFunctionParameter %_ptr_Function_mat4v4float
%194 = OpLabel
%195 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%196 = OpLoad %v4float %195
%197 = OpCompositeExtract %float %196 2
%198 = OpCompositeConstruct %v4float %197 %float_0 %float_0 %float_0
%199 = OpCompositeConstruct %v4float %float_0 %197 %float_0 %float_0
%200 = OpCompositeConstruct %v4float %float_0 %float_0 %197 %float_0
%201 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %197
%202 = OpCompositeConstruct %mat4v4float %198 %199 %200 %201
OpStore %193 %202
OpReturn
OpFunctionEnd
%out_bool_vb = OpFunction %void None %204
%205 = OpFunctionParameter %_ptr_Function_bool
%206 = OpLabel
%207 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%208 = OpLoad %v4float %207
%209 = OpCompositeExtract %float %208 0
%210 = OpFUnordNotEqual %bool %209 %float_0
OpStore %205 %210
OpReturn
OpFunctionEnd
%out_bool2_vb2 = OpFunction %void None %213
%214 = OpFunctionParameter %_ptr_Function_v2bool
%215 = OpLabel
%216 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%217 = OpLoad %v4float %216
%218 = OpCompositeExtract %float %217 1
%219 = OpFUnordNotEqual %bool %218 %float_0
%220 = OpCompositeConstruct %v2bool %219 %219
OpStore %214 %220
OpReturn
OpFunctionEnd
%out_bool3_vb3 = OpFunction %void None %223
%224 = OpFunctionParameter %_ptr_Function_v3bool
%225 = OpLabel
%226 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%227 = OpLoad %v4float %226
%228 = OpCompositeExtract %float %227 2
%229 = OpFUnordNotEqual %bool %228 %float_0
%230 = OpCompositeConstruct %v3bool %229 %229 %229
OpStore %224 %230
OpReturn
OpFunctionEnd
%out_bool4_vb4 = OpFunction %void None %233
%234 = OpFunctionParameter %_ptr_Function_v4bool
%235 = OpLabel
%236 = OpAccessChain %_ptr_Uniform_v4float %32 %int_2
%237 = OpLoad %v4float %236
%238 = OpCompositeExtract %float %237 3
%239 = OpFUnordNotEqual %bool %238 %float_0
%240 = OpCompositeConstruct %v4bool %239 %239 %239 %239
OpStore %234 %240
OpReturn
OpFunctionEnd
%main = OpFunction %v4float None %241
%242 = OpFunctionParameter %_ptr_Function_v2float
%243 = OpLabel
%h = OpVariable %_ptr_Function_float Function
%245 = OpVariable %_ptr_Function_float Function
%h2 = OpVariable %_ptr_Function_v2float Function
%249 = OpVariable %_ptr_Function_v2float Function
%h3 = OpVariable %_ptr_Function_v3float Function
%253 = OpVariable %_ptr_Function_v3float Function
%h4 = OpVariable %_ptr_Function_v4float Function
%257 = OpVariable %_ptr_Function_v4float Function
%262 = OpVariable %_ptr_Function_float Function
%265 = OpVariable %_ptr_Function_v2float Function
%270 = OpVariable %_ptr_Function_v4float Function
%h2x2 = OpVariable %_ptr_Function_mat2v2float Function
%276 = OpVariable %_ptr_Function_mat2v2float Function
%h3x3 = OpVariable %_ptr_Function_mat3v3float Function
%280 = OpVariable %_ptr_Function_mat3v3float Function
%h4x4 = OpVariable %_ptr_Function_mat4v4float Function
%284 = OpVariable %_ptr_Function_mat4v4float Function
%288 = OpVariable %_ptr_Function_v3float Function
%294 = OpVariable %_ptr_Function_float Function
%300 = OpVariable %_ptr_Function_float Function
%i = OpVariable %_ptr_Function_int Function
%304 = OpVariable %_ptr_Function_int Function
%i2 = OpVariable %_ptr_Function_v2int Function
%308 = OpVariable %_ptr_Function_v2int Function
%i3 = OpVariable %_ptr_Function_v3int Function
%312 = OpVariable %_ptr_Function_v3int Function
%i4 = OpVariable %_ptr_Function_v4int Function
%316 = OpVariable %_ptr_Function_v4int Function
%319 = OpVariable %_ptr_Function_v3int Function
%325 = OpVariable %_ptr_Function_int Function
%f = OpVariable %_ptr_Function_float Function
%329 = OpVariable %_ptr_Function_float Function
%f2 = OpVariable %_ptr_Function_v2float Function
%333 = OpVariable %_ptr_Function_v2float Function
%f3 = OpVariable %_ptr_Function_v3float Function
%337 = OpVariable %_ptr_Function_v3float Function
%f4 = OpVariable %_ptr_Function_v4float Function
%341 = OpVariable %_ptr_Function_v4float Function
%344 = OpVariable %_ptr_Function_v2float Function
%350 = OpVariable %_ptr_Function_float Function
%f2x2 = OpVariable %_ptr_Function_mat2v2float Function
%354 = OpVariable %_ptr_Function_mat2v2float Function
%f3x3 = OpVariable %_ptr_Function_mat3v3float Function
%358 = OpVariable %_ptr_Function_mat3v3float Function
%f4x4 = OpVariable %_ptr_Function_mat4v4float Function
%362 = OpVariable %_ptr_Function_mat4v4float Function
%367 = OpVariable %_ptr_Function_float Function
%b = OpVariable %_ptr_Function_bool Function
%371 = OpVariable %_ptr_Function_bool Function
%b2 = OpVariable %_ptr_Function_v2bool Function
%375 = OpVariable %_ptr_Function_v2bool Function
%b3 = OpVariable %_ptr_Function_v3bool Function
%379 = OpVariable %_ptr_Function_v3bool Function
%b4 = OpVariable %_ptr_Function_v4bool Function
%383 = OpVariable %_ptr_Function_v4bool Function
%386 = OpVariable %_ptr_Function_v2bool Function
%392 = OpVariable %_ptr_Function_bool Function
%ok = OpVariable %_ptr_Function_bool Function
%484 = OpVariable %_ptr_Function_v4float Function
%246 = OpFunctionCall %void %out_half_vh %245
%247 = OpLoad %float %245
OpStore %h %247
%250 = OpFunctionCall %void %out_half2_vh2 %249
%251 = OpLoad %v2float %249
OpStore %h2 %251
%254 = OpFunctionCall %void %out_half3_vh3 %253
%255 = OpLoad %v3float %253
OpStore %h3 %255
%258 = OpFunctionCall %void %out_half4_vh4 %257
%259 = OpLoad %v4float %257
OpStore %h4 %259
%260 = OpAccessChain %_ptr_Function_float %h3 %int_1
%263 = OpFunctionCall %void %out_half_vh %262
%264 = OpLoad %float %262
OpStore %260 %264
%266 = OpFunctionCall %void %out_half2_vh2 %265
%267 = OpLoad %v2float %265
%268 = OpLoad %v3float %h3
%269 = OpVectorShuffle %v3float %268 %267 3 1 4
OpStore %h3 %269
%271 = OpFunctionCall %void %out_half4_vh4 %270
%272 = OpLoad %v4float %270
%273 = OpLoad %v4float %h4
%274 = OpVectorShuffle %v4float %273 %272 6 7 4 5
OpStore %h4 %274
%277 = OpFunctionCall %void %out_half2x2_vh22 %276
%278 = OpLoad %mat2v2float %276
OpStore %h2x2 %278
%281 = OpFunctionCall %void %out_half3x3_vh33 %280
%282 = OpLoad %mat3v3float %280
OpStore %h3x3 %282
%285 = OpFunctionCall %void %out_half4x4_vh44 %284
%286 = OpLoad %mat4v4float %284
OpStore %h4x4 %286
%287 = OpAccessChain %_ptr_Function_v3float %h3x3 %int_1
%289 = OpFunctionCall %void %out_half3_vh3 %288
%290 = OpLoad %v3float %288
OpStore %287 %290
%292 = OpAccessChain %_ptr_Function_v4float %h4x4 %int_3
%293 = OpAccessChain %_ptr_Function_float %292 %int_3
%295 = OpFunctionCall %void %out_half_vh %294
%296 = OpLoad %float %294
OpStore %293 %296
%298 = OpAccessChain %_ptr_Function_v2float %h2x2 %int_0
%299 = OpAccessChain %_ptr_Function_float %298 %int_0
%301 = OpFunctionCall %void %out_half_vh %300
%302 = OpLoad %float %300
OpStore %299 %302
%305 = OpFunctionCall %void %out_int_vi %304
%306 = OpLoad %int %304
OpStore %i %306
%309 = OpFunctionCall %void %out_int2_vi2 %308
%310 = OpLoad %v2int %308
OpStore %i2 %310
%313 = OpFunctionCall %void %out_int3_vi3 %312
%314 = OpLoad %v3int %312
OpStore %i3 %314
%317 = OpFunctionCall %void %out_int4_vi4 %316
%318 = OpLoad %v4int %316
OpStore %i4 %318
%320 = OpFunctionCall %void %out_int3_vi3 %319
%321 = OpLoad %v3int %319
%322 = OpLoad %v4int %i4
%323 = OpVectorShuffle %v4int %322 %321 4 5 6 3
OpStore %i4 %323
%324 = OpAccessChain %_ptr_Function_int %i2 %int_1
%326 = OpFunctionCall %void %out_int_vi %325
%327 = OpLoad %int %325
OpStore %324 %327
%330 = OpFunctionCall %void %out_float_vf %329
%331 = OpLoad %float %329
OpStore %f %331
%334 = OpFunctionCall %void %out_float2_vf2 %333
%335 = OpLoad %v2float %333
OpStore %f2 %335
%338 = OpFunctionCall %void %out_float3_vf3 %337
%339 = OpLoad %v3float %337
OpStore %f3 %339
%342 = OpFunctionCall %void %out_float4_vf4 %341
%343 = OpLoad %v4float %341
OpStore %f4 %343
%345 = OpFunctionCall %void %out_float2_vf2 %344
%346 = OpLoad %v2float %344
%347 = OpLoad %v3float %f3
%348 = OpVectorShuffle %v3float %347 %346 3 4 2
OpStore %f3 %348
%349 = OpAccessChain %_ptr_Function_float %f2 %int_0
%351 = OpFunctionCall %void %out_float_vf %350
%352 = OpLoad %float %350
OpStore %349 %352
%355 = OpFunctionCall %void %out_float2x2_vf22 %354
%356 = OpLoad %mat2v2float %354
OpStore %f2x2 %356
%359 = OpFunctionCall %void %out_float3x3_vf33 %358
%360 = OpLoad %mat3v3float %358
OpStore %f3x3 %360
%363 = OpFunctionCall %void %out_float4x4_vf44 %362
%364 = OpLoad %mat4v4float %362
OpStore %f4x4 %364
%365 = OpAccessChain %_ptr_Function_v2float %f2x2 %int_0
%366 = OpAccessChain %_ptr_Function_float %365 %int_0
%368 = OpFunctionCall %void %out_float_vf %367
%369 = OpLoad %float %367
OpStore %366 %369
%372 = OpFunctionCall %void %out_bool_vb %371
%373 = OpLoad %bool %371
OpStore %b %373
%376 = OpFunctionCall %void %out_bool2_vb2 %375
%377 = OpLoad %v2bool %375
OpStore %b2 %377
%380 = OpFunctionCall %void %out_bool3_vb3 %379
%381 = OpLoad %v3bool %379
OpStore %b3 %381
%384 = OpFunctionCall %void %out_bool4_vb4 %383
%385 = OpLoad %v4bool %383
OpStore %b4 %385
%387 = OpFunctionCall %void %out_bool2_vb2 %386
%388 = OpLoad %v2bool %386
%389 = OpLoad %v4bool %b4
%390 = OpVectorShuffle %v4bool %389 %388 4 1 2 5
OpStore %b4 %390
%391 = OpAccessChain %_ptr_Function_bool %b3 %int_2
%393 = OpFunctionCall %void %out_bool_vb %392
%394 = OpLoad %bool %392
OpStore %391 %394
OpStore %ok %true
OpSelectionMerge %399 None
OpBranchConditional %true %398 %399
%398 = OpLabel
%401 = OpLoad %float %h
%402 = OpLoad %v2float %h2
%403 = OpCompositeExtract %float %402 0
%404 = OpFMul %float %401 %403
%405 = OpLoad %v3float %h3
%406 = OpCompositeExtract %float %405 0
%407 = OpFMul %float %404 %406
%408 = OpLoad %v4float %h4
%409 = OpCompositeExtract %float %408 0
%410 = OpFMul %float %407 %409
%411 = OpAccessChain %_ptr_Function_v2float %h2x2 %int_0
%412 = OpLoad %v2float %411
%413 = OpCompositeExtract %float %412 0
%414 = OpFMul %float %410 %413
%415 = OpAccessChain %_ptr_Function_v3float %h3x3 %int_0
%416 = OpLoad %v3float %415
%417 = OpCompositeExtract %float %416 0
%418 = OpFMul %float %414 %417
%419 = OpAccessChain %_ptr_Function_v4float %h4x4 %int_0
%420 = OpLoad %v4float %419
%421 = OpCompositeExtract %float %420 0
%422 = OpFMul %float %418 %421
%423 = OpFOrdEqual %bool %float_1 %422
OpBranch %399
%399 = OpLabel
%424 = OpPhi %bool %false %243 %423 %398
OpStore %ok %424
OpSelectionMerge %426 None
OpBranchConditional %424 %425 %426
%425 = OpLabel
%427 = OpLoad %float %f
%428 = OpLoad %v2float %f2
%429 = OpCompositeExtract %float %428 0
%430 = OpFMul %float %427 %429
%431 = OpLoad %v3float %f3
%432 = OpCompositeExtract %float %431 0
%433 = OpFMul %float %430 %432
%434 = OpLoad %v4float %f4
%435 = OpCompositeExtract %float %434 0
%436 = OpFMul %float %433 %435
%437 = OpAccessChain %_ptr_Function_v2float %f2x2 %int_0
%438 = OpLoad %v2float %437
%439 = OpCompositeExtract %float %438 0
%440 = OpFMul %float %436 %439
%441 = OpAccessChain %_ptr_Function_v3float %f3x3 %int_0
%442 = OpLoad %v3float %441
%443 = OpCompositeExtract %float %442 0
%444 = OpFMul %float %440 %443
%445 = OpAccessChain %_ptr_Function_v4float %f4x4 %int_0
%446 = OpLoad %v4float %445
%447 = OpCompositeExtract %float %446 0
%448 = OpFMul %float %444 %447
%449 = OpFOrdEqual %bool %float_1 %448
OpBranch %426
%426 = OpLabel
%450 = OpPhi %bool %false %399 %449 %425
OpStore %ok %450
OpSelectionMerge %452 None
OpBranchConditional %450 %451 %452
%451 = OpLabel
%453 = OpLoad %int %i
%454 = OpLoad %v2int %i2
%455 = OpCompositeExtract %int %454 0
%456 = OpIMul %int %453 %455
%457 = OpLoad %v3int %i3
%458 = OpCompositeExtract %int %457 0
%459 = OpIMul %int %456 %458
%460 = OpLoad %v4int %i4
%461 = OpCompositeExtract %int %460 0
%462 = OpIMul %int %459 %461
%463 = OpIEqual %bool %int_1 %462
OpBranch %452
%452 = OpLabel
%464 = OpPhi %bool %false %426 %463 %451
OpStore %ok %464
OpSelectionMerge %466 None
OpBranchConditional %464 %465 %466
%465 = OpLabel
%467 = OpLoad %bool %b
OpSelectionMerge %469 None
OpBranchConditional %467 %468 %469
%468 = OpLabel
%470 = OpLoad %v2bool %b2
%471 = OpCompositeExtract %bool %470 0
OpBranch %469
%469 = OpLabel
%472 = OpPhi %bool %false %465 %471 %468
OpSelectionMerge %474 None
OpBranchConditional %472 %473 %474
%473 = OpLabel
%475 = OpLoad %v3bool %b3
%476 = OpCompositeExtract %bool %475 0
OpBranch %474
%474 = OpLabel
%477 = OpPhi %bool %false %469 %476 %473
OpSelectionMerge %479 None
OpBranchConditional %477 %478 %479
%478 = OpLabel
%480 = OpLoad %v4bool %b4
%481 = OpCompositeExtract %bool %480 0
OpBranch %479
%479 = OpLabel
%482 = OpPhi %bool %false %474 %481 %478
OpBranch %466
%466 = OpLabel
%483 = OpPhi %bool %false %452 %482 %479
OpStore %ok %483
OpSelectionMerge %487 None
OpBranchConditional %483 %485 %486
%485 = OpLabel
%488 = OpAccessChain %_ptr_Uniform_v4float %32 %int_0
%489 = OpLoad %v4float %488
OpStore %484 %489
OpBranch %487
%486 = OpLabel
%490 = OpAccessChain %_ptr_Uniform_v4float %32 %int_1
%491 = OpLoad %v4float %490
OpStore %484 %491
OpBranch %487
%487 = OpLabel
%492 = OpLoad %v4float %484
OpReturnValue %492
OpFunctionEnd