blob: 58240d3161859f39b13260f63ff646d6a0fc258a [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
OpExecutionMode %main OriginUpperLeft
OpName %sk_FragColor "sk_FragColor"
OpName %sk_Clockwise "sk_Clockwise"
OpName %main "main"
OpName %b "b"
OpName %s "s"
OpName %i "i"
OpName %us "us"
OpName %ui "ui"
OpName %h "h"
OpName %f "f"
OpName %s2s "s2s"
OpName %i2s "i2s"
OpName %us2s "us2s"
OpName %ui2s "ui2s"
OpName %h2s "h2s"
OpName %f2s "f2s"
OpName %b2s "b2s"
OpName %s2i "s2i"
OpName %i2i "i2i"
OpName %us2i "us2i"
OpName %ui2i "ui2i"
OpName %h2i "h2i"
OpName %f2i "f2i"
OpName %b2i "b2i"
OpName %s2us "s2us"
OpName %i2us "i2us"
OpName %us2us "us2us"
OpName %ui2us "ui2us"
OpName %h2us "h2us"
OpName %f2us "f2us"
OpName %b2us "b2us"
OpName %s2ui "s2ui"
OpName %i2ui "i2ui"
OpName %us2ui "us2ui"
OpName %ui2ui "ui2ui"
OpName %h2ui "h2ui"
OpName %f2ui "f2ui"
OpName %b2ui "b2ui"
OpName %s2f "s2f"
OpName %i2f "i2f"
OpName %us2f "us2f"
OpName %ui2f "ui2f"
OpName %h2f "h2f"
OpName %f2f "f2f"
OpName %b2f "b2f"
OpDecorate %sk_FragColor RelaxedPrecision
OpDecorate %sk_FragColor Location 0
OpDecorate %sk_FragColor Index 0
OpDecorate %sk_Clockwise BuiltIn FrontFacing
OpDecorate %s RelaxedPrecision
OpDecorate %21 RelaxedPrecision
OpDecorate %us RelaxedPrecision
OpDecorate %29 RelaxedPrecision
OpDecorate %h RelaxedPrecision
OpDecorate %s2s RelaxedPrecision
OpDecorate %39 RelaxedPrecision
OpDecorate %i2s RelaxedPrecision
OpDecorate %us2s RelaxedPrecision
OpDecorate %43 RelaxedPrecision
OpDecorate %44 RelaxedPrecision
OpDecorate %ui2s RelaxedPrecision
OpDecorate %47 RelaxedPrecision
OpDecorate %h2s RelaxedPrecision
OpDecorate %49 RelaxedPrecision
OpDecorate %50 RelaxedPrecision
OpDecorate %f2s RelaxedPrecision
OpDecorate %53 RelaxedPrecision
OpDecorate %b2s RelaxedPrecision
OpDecorate %55 RelaxedPrecision
OpDecorate %56 RelaxedPrecision
OpDecorate %60 RelaxedPrecision
OpDecorate %64 RelaxedPrecision
OpDecorate %70 RelaxedPrecision
OpDecorate %76 RelaxedPrecision
OpDecorate %s2us RelaxedPrecision
OpDecorate %79 RelaxedPrecision
OpDecorate %80 RelaxedPrecision
OpDecorate %i2us RelaxedPrecision
OpDecorate %83 RelaxedPrecision
OpDecorate %us2us RelaxedPrecision
OpDecorate %85 RelaxedPrecision
OpDecorate %ui2us RelaxedPrecision
OpDecorate %h2us RelaxedPrecision
OpDecorate %89 RelaxedPrecision
OpDecorate %90 RelaxedPrecision
OpDecorate %f2us RelaxedPrecision
OpDecorate %93 RelaxedPrecision
OpDecorate %b2us RelaxedPrecision
OpDecorate %95 RelaxedPrecision
OpDecorate %96 RelaxedPrecision
OpDecorate %100 RelaxedPrecision
OpDecorate %106 RelaxedPrecision
OpDecorate %110 RelaxedPrecision
OpDecorate %116 RelaxedPrecision
OpDecorate %119 RelaxedPrecision
OpDecorate %125 RelaxedPrecision
OpDecorate %131 RelaxedPrecision
OpDecorate %135 RelaxedPrecision
OpDecorate %138 RelaxedPrecision
OpDecorate %139 RelaxedPrecision
OpDecorate %141 RelaxedPrecision
OpDecorate %142 RelaxedPrecision
OpDecorate %143 RelaxedPrecision
OpDecorate %144 RelaxedPrecision
OpDecorate %145 RelaxedPrecision
OpDecorate %147 RelaxedPrecision
OpDecorate %148 RelaxedPrecision
OpDecorate %149 RelaxedPrecision
OpDecorate %150 RelaxedPrecision
OpDecorate %152 RelaxedPrecision
OpDecorate %153 RelaxedPrecision
OpDecorate %154 RelaxedPrecision
OpDecorate %155 RelaxedPrecision
OpDecorate %156 RelaxedPrecision
OpDecorate %157 RelaxedPrecision
OpDecorate %158 RelaxedPrecision
OpDecorate %159 RelaxedPrecision
OpDecorate %160 RelaxedPrecision
OpDecorate %161 RelaxedPrecision
OpDecorate %162 RelaxedPrecision
OpDecorate %163 RelaxedPrecision
OpDecorate %164 RelaxedPrecision
OpDecorate %165 RelaxedPrecision
OpDecorate %166 RelaxedPrecision
OpDecorate %167 RelaxedPrecision
OpDecorate %168 RelaxedPrecision
OpDecorate %169 RelaxedPrecision
OpDecorate %170 RelaxedPrecision
OpDecorate %171 RelaxedPrecision
OpDecorate %172 RelaxedPrecision
OpDecorate %173 RelaxedPrecision
OpDecorate %175 RelaxedPrecision
OpDecorate %176 RelaxedPrecision
OpDecorate %178 RelaxedPrecision
OpDecorate %179 RelaxedPrecision
OpDecorate %181 RelaxedPrecision
OpDecorate %182 RelaxedPrecision
OpDecorate %184 RelaxedPrecision
OpDecorate %185 RelaxedPrecision
OpDecorate %187 RelaxedPrecision
OpDecorate %188 RelaxedPrecision
OpDecorate %190 RelaxedPrecision
OpDecorate %191 RelaxedPrecision
OpDecorate %193 RelaxedPrecision
OpDecorate %194 RelaxedPrecision
OpDecorate %195 RelaxedPrecision
OpDecorate %196 RelaxedPrecision
OpDecorate %197 RelaxedPrecision
OpDecorate %198 RelaxedPrecision
OpDecorate %199 RelaxedPrecision
OpDecorate %200 RelaxedPrecision
OpDecorate %201 RelaxedPrecision
OpDecorate %202 RelaxedPrecision
OpDecorate %203 RelaxedPrecision
OpDecorate %207 RelaxedPrecision
OpDecorate %208 RelaxedPrecision
OpDecorate %209 RelaxedPrecision
OpDecorate %210 RelaxedPrecision
OpDecorate %211 RelaxedPrecision
OpDecorate %212 RelaxedPrecision
OpDecorate %213 RelaxedPrecision
OpDecorate %214 RelaxedPrecision
OpDecorate %215 RelaxedPrecision
OpDecorate %216 RelaxedPrecision
OpDecorate %217 RelaxedPrecision
OpDecorate %218 RelaxedPrecision
OpDecorate %220 RelaxedPrecision
OpDecorate %221 RelaxedPrecision
OpDecorate %223 RelaxedPrecision
OpDecorate %224 RelaxedPrecision
OpDecorate %226 RelaxedPrecision
OpDecorate %227 RelaxedPrecision
OpDecorate %229 RelaxedPrecision
OpDecorate %230 RelaxedPrecision
OpDecorate %232 RelaxedPrecision
OpDecorate %233 RelaxedPrecision
OpDecorate %235 RelaxedPrecision
OpDecorate %236 RelaxedPrecision
OpDecorate %238 RelaxedPrecision
OpDecorate %239 RelaxedPrecision
OpDecorate %241 RelaxedPrecision
OpDecorate %243 RelaxedPrecision
OpDecorate %245 RelaxedPrecision
OpDecorate %247 RelaxedPrecision
OpDecorate %249 RelaxedPrecision
OpDecorate %251 RelaxedPrecision
OpDecorate %253 RelaxedPrecision
OpDecorate %254 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
%void = OpTypeVoid
%11 = OpTypeFunction %void
%_ptr_Function_bool = OpTypePointer Function %bool
%true = OpConstantTrue %bool
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%float_1 = OpConstant %float 1
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%_ptr_Function_float = OpTypePointer Function %float
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%uint_1 = OpConstant %uint 1
%uint_0 = OpConstant %uint 0
%float_0 = OpConstant %float 0
%_ptr_Output_float = OpTypePointer Output %float
%main = OpFunction %void None %11
%12 = OpLabel
%b = OpVariable %_ptr_Function_bool Function
%s = OpVariable %_ptr_Function_int Function
%i = OpVariable %_ptr_Function_int Function
%us = OpVariable %_ptr_Function_uint Function
%ui = OpVariable %_ptr_Function_uint Function
%h = OpVariable %_ptr_Function_float Function
%f = OpVariable %_ptr_Function_float Function
%s2s = OpVariable %_ptr_Function_int Function
%i2s = OpVariable %_ptr_Function_int Function
%us2s = OpVariable %_ptr_Function_int Function
%ui2s = OpVariable %_ptr_Function_int Function
%h2s = OpVariable %_ptr_Function_int Function
%f2s = OpVariable %_ptr_Function_int Function
%b2s = OpVariable %_ptr_Function_int Function
%s2i = OpVariable %_ptr_Function_int Function
%i2i = OpVariable %_ptr_Function_int Function
%us2i = OpVariable %_ptr_Function_int Function
%ui2i = OpVariable %_ptr_Function_int Function
%h2i = OpVariable %_ptr_Function_int Function
%f2i = OpVariable %_ptr_Function_int Function
%b2i = OpVariable %_ptr_Function_int Function
%s2us = OpVariable %_ptr_Function_uint Function
%i2us = OpVariable %_ptr_Function_uint Function
%us2us = OpVariable %_ptr_Function_uint Function
%ui2us = OpVariable %_ptr_Function_uint Function
%h2us = OpVariable %_ptr_Function_uint Function
%f2us = OpVariable %_ptr_Function_uint Function
%b2us = OpVariable %_ptr_Function_uint Function
%s2ui = OpVariable %_ptr_Function_uint Function
%i2ui = OpVariable %_ptr_Function_uint Function
%us2ui = OpVariable %_ptr_Function_uint Function
%ui2ui = OpVariable %_ptr_Function_uint Function
%h2ui = OpVariable %_ptr_Function_uint Function
%f2ui = OpVariable %_ptr_Function_uint Function
%b2ui = OpVariable %_ptr_Function_uint Function
%s2f = OpVariable %_ptr_Function_float Function
%i2f = OpVariable %_ptr_Function_float Function
%us2f = OpVariable %_ptr_Function_float Function
%ui2f = OpVariable %_ptr_Function_float Function
%h2f = OpVariable %_ptr_Function_float Function
%f2f = OpVariable %_ptr_Function_float Function
%b2f = OpVariable %_ptr_Function_float Function
OpStore %b %true
%19 = OpExtInst %float %1 Sqrt %float_1
%21 = OpConvertFToS %int %19
OpStore %s %21
%23 = OpExtInst %float %1 Sqrt %float_1
%24 = OpConvertFToS %int %23
OpStore %i %24
%28 = OpExtInst %float %1 Sqrt %float_1
%29 = OpConvertFToU %uint %28
OpStore %us %29
%31 = OpExtInst %float %1 Sqrt %float_1
%32 = OpConvertFToU %uint %31
OpStore %ui %32
%35 = OpExtInst %float %1 Sqrt %float_1
OpStore %h %35
%37 = OpExtInst %float %1 Sqrt %float_1
OpStore %f %37
%39 = OpLoad %int %s
OpStore %s2s %39
%41 = OpLoad %int %i
OpStore %i2s %41
%43 = OpLoad %uint %us
%44 = OpBitcast %int %43
OpStore %us2s %44
%46 = OpLoad %uint %ui
%47 = OpBitcast %int %46
OpStore %ui2s %47
%49 = OpLoad %float %h
%50 = OpConvertFToS %int %49
OpStore %h2s %50
%52 = OpLoad %float %f
%53 = OpConvertFToS %int %52
OpStore %f2s %53
%55 = OpLoad %bool %b
%56 = OpSelect %int %55 %int_1 %int_0
OpStore %b2s %56
%60 = OpLoad %int %s
OpStore %s2i %60
%62 = OpLoad %int %i
OpStore %i2i %62
%64 = OpLoad %uint %us
%65 = OpBitcast %int %64
OpStore %us2i %65
%67 = OpLoad %uint %ui
%68 = OpBitcast %int %67
OpStore %ui2i %68
%70 = OpLoad %float %h
%71 = OpConvertFToS %int %70
OpStore %h2i %71
%73 = OpLoad %float %f
%74 = OpConvertFToS %int %73
OpStore %f2i %74
%76 = OpLoad %bool %b
%77 = OpSelect %int %76 %int_1 %int_0
OpStore %b2i %77
%79 = OpLoad %int %s
%80 = OpBitcast %uint %79
OpStore %s2us %80
%82 = OpLoad %int %i
%83 = OpBitcast %uint %82
OpStore %i2us %83
%85 = OpLoad %uint %us
OpStore %us2us %85
%87 = OpLoad %uint %ui
OpStore %ui2us %87
%89 = OpLoad %float %h
%90 = OpConvertFToU %uint %89
OpStore %h2us %90
%92 = OpLoad %float %f
%93 = OpConvertFToU %uint %92
OpStore %f2us %93
%95 = OpLoad %bool %b
%96 = OpSelect %uint %95 %uint_1 %uint_0
OpStore %b2us %96
%100 = OpLoad %int %s
%101 = OpBitcast %uint %100
OpStore %s2ui %101
%103 = OpLoad %int %i
%104 = OpBitcast %uint %103
OpStore %i2ui %104
%106 = OpLoad %uint %us
OpStore %us2ui %106
%108 = OpLoad %uint %ui
OpStore %ui2ui %108
%110 = OpLoad %float %h
%111 = OpConvertFToU %uint %110
OpStore %h2ui %111
%113 = OpLoad %float %f
%114 = OpConvertFToU %uint %113
OpStore %f2ui %114
%116 = OpLoad %bool %b
%117 = OpSelect %uint %116 %uint_1 %uint_0
OpStore %b2ui %117
%119 = OpLoad %int %s
%120 = OpConvertSToF %float %119
OpStore %s2f %120
%122 = OpLoad %int %i
%123 = OpConvertSToF %float %122
OpStore %i2f %123
%125 = OpLoad %uint %us
%126 = OpConvertUToF %float %125
OpStore %us2f %126
%128 = OpLoad %uint %ui
%129 = OpConvertUToF %float %128
OpStore %ui2f %129
%131 = OpLoad %float %h
OpStore %h2f %131
%133 = OpLoad %float %f
OpStore %f2f %133
%135 = OpLoad %bool %b
%136 = OpSelect %float %135 %float_1 %float_0
OpStore %b2f %136
%138 = OpLoad %int %s
%139 = OpConvertSToF %float %138
%140 = OpLoad %int %i
%141 = OpConvertSToF %float %140
%142 = OpFAdd %float %139 %141
%143 = OpLoad %uint %us
%144 = OpConvertUToF %float %143
%145 = OpFAdd %float %142 %144
%146 = OpLoad %uint %ui
%147 = OpConvertUToF %float %146
%148 = OpFAdd %float %145 %147
%149 = OpLoad %float %h
%150 = OpFAdd %float %148 %149
%151 = OpLoad %float %f
%152 = OpFAdd %float %150 %151
%153 = OpLoad %int %s2s
%154 = OpConvertSToF %float %153
%155 = OpFAdd %float %152 %154
%156 = OpLoad %int %i2s
%157 = OpConvertSToF %float %156
%158 = OpFAdd %float %155 %157
%159 = OpLoad %int %us2s
%160 = OpConvertSToF %float %159
%161 = OpFAdd %float %158 %160
%162 = OpLoad %int %ui2s
%163 = OpConvertSToF %float %162
%164 = OpFAdd %float %161 %163
%165 = OpLoad %int %h2s
%166 = OpConvertSToF %float %165
%167 = OpFAdd %float %164 %166
%168 = OpLoad %int %f2s
%169 = OpConvertSToF %float %168
%170 = OpFAdd %float %167 %169
%171 = OpLoad %int %b2s
%172 = OpConvertSToF %float %171
%173 = OpFAdd %float %170 %172
%174 = OpLoad %int %s2i
%175 = OpConvertSToF %float %174
%176 = OpFAdd %float %173 %175
%177 = OpLoad %int %i2i
%178 = OpConvertSToF %float %177
%179 = OpFAdd %float %176 %178
%180 = OpLoad %int %us2i
%181 = OpConvertSToF %float %180
%182 = OpFAdd %float %179 %181
%183 = OpLoad %int %ui2i
%184 = OpConvertSToF %float %183
%185 = OpFAdd %float %182 %184
%186 = OpLoad %int %h2i
%187 = OpConvertSToF %float %186
%188 = OpFAdd %float %185 %187
%189 = OpLoad %int %f2i
%190 = OpConvertSToF %float %189
%191 = OpFAdd %float %188 %190
%192 = OpLoad %int %b2i
%193 = OpConvertSToF %float %192
%194 = OpFAdd %float %191 %193
%195 = OpLoad %uint %s2us
%196 = OpConvertUToF %float %195
%197 = OpFAdd %float %194 %196
%198 = OpLoad %uint %i2us
%199 = OpConvertUToF %float %198
%200 = OpFAdd %float %197 %199
%201 = OpLoad %uint %us2us
%202 = OpConvertUToF %float %201
%203 = OpFAdd %float %200 %202
%204 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
OpStore %204 %203
%206 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
%207 = OpLoad %float %206
%208 = OpLoad %uint %ui2us
%209 = OpConvertUToF %float %208
%210 = OpLoad %uint %h2us
%211 = OpConvertUToF %float %210
%212 = OpFAdd %float %209 %211
%213 = OpLoad %uint %f2us
%214 = OpConvertUToF %float %213
%215 = OpFAdd %float %212 %214
%216 = OpLoad %uint %b2us
%217 = OpConvertUToF %float %216
%218 = OpFAdd %float %215 %217
%219 = OpLoad %uint %s2ui
%220 = OpConvertUToF %float %219
%221 = OpFAdd %float %218 %220
%222 = OpLoad %uint %i2ui
%223 = OpConvertUToF %float %222
%224 = OpFAdd %float %221 %223
%225 = OpLoad %uint %us2ui
%226 = OpConvertUToF %float %225
%227 = OpFAdd %float %224 %226
%228 = OpLoad %uint %ui2ui
%229 = OpConvertUToF %float %228
%230 = OpFAdd %float %227 %229
%231 = OpLoad %uint %h2ui
%232 = OpConvertUToF %float %231
%233 = OpFAdd %float %230 %232
%234 = OpLoad %uint %f2ui
%235 = OpConvertUToF %float %234
%236 = OpFAdd %float %233 %235
%237 = OpLoad %uint %b2ui
%238 = OpConvertUToF %float %237
%239 = OpFAdd %float %236 %238
%240 = OpLoad %float %s2f
%241 = OpFAdd %float %239 %240
%242 = OpLoad %float %i2f
%243 = OpFAdd %float %241 %242
%244 = OpLoad %float %us2f
%245 = OpFAdd %float %243 %244
%246 = OpLoad %float %ui2f
%247 = OpFAdd %float %245 %246
%248 = OpLoad %float %h2f
%249 = OpFAdd %float %247 %248
%250 = OpLoad %float %f2f
%251 = OpFAdd %float %249 %250
%252 = OpLoad %float %b2f
%253 = OpFAdd %float %251 %252
%254 = OpFAdd %float %207 %253
OpStore %206 %254
OpReturn
OpFunctionEnd