| 1 |
; SPIR-V |
| 2 |
; Version: 1.3 |
| 3 |
; Generator: Khronos SPIR-V Tools Assembler; 0 |
| 4 |
; Bound: 325 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpCapability SampleRateShading |
| 8 |
OpCapability InterpolationFunction |
| 9 |
%1 = OpExtInstImport "GLSL.std.450" |
| 10 |
OpMemoryModel Logical GLSL450 |
| 11 |
OpEntryPoint Fragment %main "main" %FragColor %baz %a %s %foo %sid %bar %b %c |
| 12 |
OpExecutionMode %main OriginUpperLeft |
| 13 |
OpSource GLSL 450 |
| 14 |
OpName %main "main" |
| 15 |
OpName %func_ "func(" |
| 16 |
OpName %FragColor "FragColor" |
| 17 |
OpName %baz "baz" |
| 18 |
OpName %a "a" |
| 19 |
OpName %_ "" |
| 20 |
OpMemberName %_ 0 "x" |
| 21 |
OpMemberName %_ 1 "y" |
| 22 |
OpMemberName %_ 2 "z" |
| 23 |
OpMemberName %_ 3 "u" |
| 24 |
OpMemberName %_ 4 "v" |
| 25 |
OpMemberName %_ 5 "w" |
| 26 |
OpName %s "s" |
| 27 |
OpName %foo "foo" |
| 28 |
OpName %sid "sid" |
| 29 |
OpName %bar "bar" |
| 30 |
OpName %b "b" |
| 31 |
OpName %c "c" |
| 32 |
OpDecorate %FragColor Location 0 |
| 33 |
OpDecorate %baz Sample |
| 34 |
OpDecorate %baz Location 2 |
| 35 |
OpDecorate %a Location 4 |
| 36 |
OpDecorate %s Location 10 |
| 37 |
OpDecorate %foo NoPerspective |
| 38 |
OpDecorate %foo Location 0 |
| 39 |
OpDecorate %sid Flat |
| 40 |
OpDecorate %sid Location 3 |
| 41 |
OpDecorate %bar Centroid |
| 42 |
OpDecorate %bar Location 1 |
| 43 |
OpDecorate %b Centroid |
| 44 |
OpDecorate %b Location 6 |
| 45 |
OpDecorate %c Sample |
| 46 |
OpDecorate %c Location 8 |
| 47 |
OpMemberDecorate %_ 1 Centroid |
| 48 |
OpMemberDecorate %_ 1 NoPerspective |
| 49 |
OpMemberDecorate %_ 2 Sample |
| 50 |
OpMemberDecorate %_ 3 Centroid |
| 51 |
OpMemberDecorate %_ 4 Sample |
| 52 |
OpMemberDecorate %_ 4 NoPerspective |
| 53 |
%void = OpTypeVoid |
| 54 |
%15 = OpTypeFunction %void |
| 55 |
%float = OpTypeFloat 32 |
| 56 |
%v4float = OpTypeVector %float 4 |
| 57 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 58 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 59 |
%v2float = OpTypeVector %float 2 |
| 60 |
%_ptr_Input_v2float = OpTypePointer Input %v2float |
| 61 |
%baz = OpVariable %_ptr_Input_v2float Input |
| 62 |
%uint = OpTypeInt 32 0 |
| 63 |
%uint_0 = OpConstant %uint 0 |
| 64 |
%_ptr_Input_float = OpTypePointer Input %float |
| 65 |
%_ptr_Output_float = OpTypePointer Output %float |
| 66 |
%uint_1 = OpConstant %uint 1 |
| 67 |
%int = OpTypeInt 32 1 |
| 68 |
%int_3 = OpConstant %int 3 |
| 69 |
%float_n0_100000001 = OpConstant %float -0.100000001 |
| 70 |
%float_0_100000001 = OpConstant %float 0.100000001 |
| 71 |
%30 = OpConstantComposite %v2float %float_n0_100000001 %float_0_100000001 |
| 72 |
%uint_2 = OpConstant %uint 2 |
| 73 |
%_arr_v2float_uint_2 = OpTypeArray %v2float %uint_2 |
| 74 |
%_ptr_Input__arr_v2float_uint_2 = OpTypePointer Input %_arr_v2float_uint_2 |
| 75 |
%a = OpVariable %_ptr_Input__arr_v2float_uint_2 Input |
| 76 |
%int_1 = OpConstant %int 1 |
| 77 |
%int_0 = OpConstant %int 0 |
| 78 |
%int_2 = OpConstant %int 2 |
| 79 |
%_arr_v4float_uint_2 = OpTypeArray %v4float %uint_2 |
| 80 |
%_ptr_Input__arr_v4float_uint_2 = OpTypePointer Input %_arr_v4float_uint_2 |
| 81 |
%uint_3 = OpConstant %uint 3 |
| 82 |
%_arr_float_uint_3 = OpTypeArray %float %uint_3 |
| 83 |
%_ = OpTypeStruct %v4float %v4float %v4float %_arr_v4float_uint_2 %_arr_v2float_uint_2 %_arr_float_uint_3 |
| 84 |
%_ptr_Input__ = OpTypePointer Input %_ |
| 85 |
%s = OpVariable %_ptr_Input__ Input |
| 86 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 87 |
%foo = OpVariable %_ptr_Input_v4float Input |
| 88 |
%_ptr_Input_int = OpTypePointer Input %int |
| 89 |
%sid = OpVariable %_ptr_Input_int Input |
| 90 |
%44 = OpConstantComposite %v2float %float_0_100000001 %float_0_100000001 |
| 91 |
%v3float = OpTypeVector %float 3 |
| 92 |
%_ptr_Input_v3float = OpTypePointer Input %v3float |
| 93 |
%bar = OpVariable %_ptr_Input_v3float Input |
| 94 |
%47 = OpConstantComposite %v2float %float_n0_100000001 %float_n0_100000001 |
| 95 |
%b = OpVariable %_ptr_Input__arr_v2float_uint_2 Input |
| 96 |
%c = OpVariable %_ptr_Input__arr_v2float_uint_2 Input |
| 97 |
%int_4 = OpConstant %int 4 |
| 98 |
%int_5 = OpConstant %int 5 |
| 99 |
%main = OpFunction %void None %15 |
| 100 |
%50 = OpLabel |
| 101 |
%51 = OpLoad %v4float %foo |
| 102 |
OpStore %FragColor %51 |
| 103 |
%52 = OpExtInst %v4float %1 InterpolateAtCentroid %foo |
| 104 |
%53 = OpLoad %v4float %FragColor |
| 105 |
%54 = OpFAdd %v4float %53 %52 |
| 106 |
OpStore %FragColor %54 |
| 107 |
%55 = OpLoad %int %sid |
| 108 |
%56 = OpExtInst %v4float %1 InterpolateAtSample %foo %55 |
| 109 |
%57 = OpLoad %v4float %FragColor |
| 110 |
%58 = OpFAdd %v4float %57 %56 |
| 111 |
OpStore %FragColor %58 |
| 112 |
%59 = OpExtInst %v4float %1 InterpolateAtOffset %foo %44 |
| 113 |
%60 = OpLoad %v4float %FragColor |
| 114 |
%61 = OpFAdd %v4float %60 %59 |
| 115 |
OpStore %FragColor %61 |
| 116 |
%62 = OpLoad %v3float %bar |
| 117 |
%63 = OpLoad %v4float %FragColor |
| 118 |
%64 = OpVectorShuffle %v3float %63 %63 0 1 2 |
| 119 |
%65 = OpFAdd %v3float %64 %62 |
| 120 |
%66 = OpLoad %v4float %FragColor |
| 121 |
%67 = OpVectorShuffle %v4float %66 %65 4 5 6 3 |
| 122 |
OpStore %FragColor %67 |
| 123 |
%68 = OpExtInst %v3float %1 InterpolateAtCentroid %bar |
| 124 |
%69 = OpLoad %v4float %FragColor |
| 125 |
%70 = OpVectorShuffle %v3float %69 %69 0 1 2 |
| 126 |
%71 = OpFAdd %v3float %70 %68 |
| 127 |
%72 = OpLoad %v4float %FragColor |
| 128 |
%73 = OpVectorShuffle %v4float %72 %71 4 5 6 3 |
| 129 |
OpStore %FragColor %73 |
| 130 |
%74 = OpLoad %int %sid |
| 131 |
%75 = OpExtInst %v3float %1 InterpolateAtSample %bar %74 |
| 132 |
%76 = OpLoad %v4float %FragColor |
| 133 |
%77 = OpVectorShuffle %v3float %76 %76 0 1 2 |
| 134 |
%78 = OpFAdd %v3float %77 %75 |
| 135 |
%79 = OpLoad %v4float %FragColor |
| 136 |
%80 = OpVectorShuffle %v4float %79 %78 4 5 6 3 |
| 137 |
OpStore %FragColor %80 |
| 138 |
%81 = OpExtInst %v3float %1 InterpolateAtOffset %bar %47 |
| 139 |
%82 = OpLoad %v4float %FragColor |
| 140 |
%83 = OpVectorShuffle %v3float %82 %82 0 1 2 |
| 141 |
%84 = OpFAdd %v3float %83 %81 |
| 142 |
%85 = OpLoad %v4float %FragColor |
| 143 |
%86 = OpVectorShuffle %v4float %85 %84 4 5 6 3 |
| 144 |
OpStore %FragColor %86 |
| 145 |
%87 = OpAccessChain %_ptr_Input_v2float %b %int_0 |
| 146 |
%88 = OpLoad %v2float %87 |
| 147 |
%89 = OpLoad %v4float %FragColor |
| 148 |
%90 = OpVectorShuffle %v2float %89 %89 0 1 |
| 149 |
%91 = OpFAdd %v2float %90 %88 |
| 150 |
%92 = OpLoad %v4float %FragColor |
| 151 |
%93 = OpVectorShuffle %v4float %92 %91 4 5 2 3 |
| 152 |
OpStore %FragColor %93 |
| 153 |
%94 = OpAccessChain %_ptr_Input_v2float %b %int_1 |
| 154 |
%95 = OpExtInst %v2float %1 InterpolateAtCentroid %94 |
| 155 |
%96 = OpLoad %v4float %FragColor |
| 156 |
%97 = OpVectorShuffle %v2float %96 %96 0 1 |
| 157 |
%98 = OpFAdd %v2float %97 %95 |
| 158 |
%99 = OpLoad %v4float %FragColor |
| 159 |
%100 = OpVectorShuffle %v4float %99 %98 4 5 2 3 |
| 160 |
OpStore %FragColor %100 |
| 161 |
%101 = OpAccessChain %_ptr_Input_v2float %b %int_0 |
| 162 |
%102 = OpExtInst %v2float %1 InterpolateAtSample %101 %int_2 |
| 163 |
%103 = OpLoad %v4float %FragColor |
| 164 |
%104 = OpVectorShuffle %v2float %103 %103 0 1 |
| 165 |
%105 = OpFAdd %v2float %104 %102 |
| 166 |
%106 = OpLoad %v4float %FragColor |
| 167 |
%107 = OpVectorShuffle %v4float %106 %105 4 5 2 3 |
| 168 |
OpStore %FragColor %107 |
| 169 |
%108 = OpAccessChain %_ptr_Input_v2float %b %int_1 |
| 170 |
%109 = OpExtInst %v2float %1 InterpolateAtOffset %108 %30 |
| 171 |
%110 = OpLoad %v4float %FragColor |
| 172 |
%111 = OpVectorShuffle %v2float %110 %110 0 1 |
| 173 |
%112 = OpFAdd %v2float %111 %109 |
| 174 |
%113 = OpLoad %v4float %FragColor |
| 175 |
%114 = OpVectorShuffle %v4float %113 %112 4 5 2 3 |
| 176 |
OpStore %FragColor %114 |
| 177 |
%115 = OpAccessChain %_ptr_Input_v2float %c %int_0 |
| 178 |
%116 = OpLoad %v2float %115 |
| 179 |
%117 = OpLoad %v4float %FragColor |
| 180 |
%118 = OpVectorShuffle %v2float %117 %117 0 1 |
| 181 |
%119 = OpFAdd %v2float %118 %116 |
| 182 |
%120 = OpLoad %v4float %FragColor |
| 183 |
%121 = OpVectorShuffle %v4float %120 %119 4 5 2 3 |
| 184 |
OpStore %FragColor %121 |
| 185 |
%122 = OpAccessChain %_ptr_Input_v2float %c %int_1 |
| 186 |
%123 = OpExtInst %v2float %1 InterpolateAtCentroid %122 |
| 187 |
%124 = OpVectorShuffle %v2float %123 %123 0 1 |
| 188 |
%125 = OpLoad %v4float %FragColor |
| 189 |
%126 = OpVectorShuffle %v2float %125 %125 0 1 |
| 190 |
%127 = OpFAdd %v2float %126 %124 |
| 191 |
%128 = OpLoad %v4float %FragColor |
| 192 |
%129 = OpVectorShuffle %v4float %128 %127 4 5 2 3 |
| 193 |
OpStore %FragColor %129 |
| 194 |
%130 = OpAccessChain %_ptr_Input_v2float %c %int_0 |
| 195 |
%131 = OpExtInst %v2float %1 InterpolateAtSample %130 %int_2 |
| 196 |
%132 = OpVectorShuffle %v2float %131 %131 1 0 |
| 197 |
%133 = OpLoad %v4float %FragColor |
| 198 |
%134 = OpVectorShuffle %v2float %133 %133 0 1 |
| 199 |
%135 = OpFAdd %v2float %134 %132 |
| 200 |
%136 = OpLoad %v4float %FragColor |
| 201 |
%137 = OpVectorShuffle %v4float %136 %135 4 5 2 3 |
| 202 |
OpStore %FragColor %137 |
| 203 |
%138 = OpAccessChain %_ptr_Input_v2float %c %int_1 |
| 204 |
%139 = OpExtInst %v2float %1 InterpolateAtOffset %138 %30 |
| 205 |
%140 = OpVectorShuffle %v2float %139 %139 0 0 |
| 206 |
%141 = OpLoad %v4float %FragColor |
| 207 |
%142 = OpVectorShuffle %v2float %141 %141 0 1 |
| 208 |
%143 = OpFAdd %v2float %142 %140 |
| 209 |
%144 = OpLoad %v4float %FragColor |
| 210 |
%145 = OpVectorShuffle %v4float %144 %143 4 5 2 3 |
| 211 |
OpStore %FragColor %145 |
| 212 |
%146 = OpAccessChain %_ptr_Input_v4float %s %int_0 |
| 213 |
%147 = OpLoad %v4float %146 |
| 214 |
%148 = OpLoad %v4float %FragColor |
| 215 |
%149 = OpFAdd %v4float %148 %147 |
| 216 |
OpStore %FragColor %149 |
| 217 |
%150 = OpAccessChain %_ptr_Input_v4float %s %int_0 |
| 218 |
%151 = OpExtInst %v4float %1 InterpolateAtCentroid %150 |
| 219 |
%152 = OpLoad %v4float %FragColor |
| 220 |
%153 = OpFAdd %v4float %152 %151 |
| 221 |
OpStore %FragColor %153 |
| 222 |
%154 = OpAccessChain %_ptr_Input_v4float %s %int_0 |
| 223 |
%155 = OpLoad %int %sid |
| 224 |
%156 = OpExtInst %v4float %1 InterpolateAtSample %154 %155 |
| 225 |
%157 = OpLoad %v4float %FragColor |
| 226 |
%158 = OpFAdd %v4float %157 %156 |
| 227 |
OpStore %FragColor %158 |
| 228 |
%159 = OpAccessChain %_ptr_Input_v4float %s %int_0 |
| 229 |
%160 = OpExtInst %v4float %1 InterpolateAtOffset %159 %44 |
| 230 |
%161 = OpLoad %v4float %FragColor |
| 231 |
%162 = OpFAdd %v4float %161 %160 |
| 232 |
OpStore %FragColor %162 |
| 233 |
%163 = OpAccessChain %_ptr_Input_v4float %s %int_1 |
| 234 |
%164 = OpLoad %v4float %163 |
| 235 |
%165 = OpLoad %v4float %FragColor |
| 236 |
%166 = OpFAdd %v4float %165 %164 |
| 237 |
OpStore %FragColor %166 |
| 238 |
%167 = OpAccessChain %_ptr_Input_v4float %s %int_1 |
| 239 |
%168 = OpExtInst %v4float %1 InterpolateAtCentroid %167 |
| 240 |
%169 = OpLoad %v4float %FragColor |
| 241 |
%170 = OpFAdd %v4float %169 %168 |
| 242 |
OpStore %FragColor %170 |
| 243 |
%171 = OpAccessChain %_ptr_Input_v4float %s %int_1 |
| 244 |
%172 = OpLoad %int %sid |
| 245 |
%173 = OpExtInst %v4float %1 InterpolateAtSample %171 %172 |
| 246 |
%174 = OpLoad %v4float %FragColor |
| 247 |
%175 = OpFAdd %v4float %174 %173 |
| 248 |
OpStore %FragColor %175 |
| 249 |
%176 = OpAccessChain %_ptr_Input_v4float %s %int_1 |
| 250 |
%177 = OpExtInst %v4float %1 InterpolateAtOffset %176 %47 |
| 251 |
%178 = OpLoad %v4float %FragColor |
| 252 |
%179 = OpFAdd %v4float %178 %177 |
| 253 |
OpStore %FragColor %179 |
| 254 |
%180 = OpAccessChain %_ptr_Input_v2float %s %int_4 %int_0 |
| 255 |
%181 = OpLoad %v2float %180 |
| 256 |
%182 = OpLoad %v4float %FragColor |
| 257 |
%183 = OpVectorShuffle %v2float %182 %182 0 1 |
| 258 |
%184 = OpFAdd %v2float %183 %181 |
| 259 |
%185 = OpLoad %v4float %FragColor |
| 260 |
%186 = OpVectorShuffle %v4float %185 %184 4 5 2 3 |
| 261 |
OpStore %FragColor %186 |
| 262 |
%187 = OpAccessChain %_ptr_Input_v2float %s %int_4 %int_1 |
| 263 |
%188 = OpExtInst %v2float %1 InterpolateAtCentroid %187 |
| 264 |
%189 = OpLoad %v4float %FragColor |
| 265 |
%190 = OpVectorShuffle %v2float %189 %189 0 1 |
| 266 |
%191 = OpFAdd %v2float %190 %188 |
| 267 |
%192 = OpLoad %v4float %FragColor |
| 268 |
%193 = OpVectorShuffle %v4float %192 %191 4 5 2 3 |
| 269 |
OpStore %FragColor %193 |
| 270 |
%194 = OpAccessChain %_ptr_Input_v2float %s %int_4 %int_0 |
| 271 |
%195 = OpExtInst %v2float %1 InterpolateAtSample %194 %int_2 |
| 272 |
%196 = OpLoad %v4float %FragColor |
| 273 |
%197 = OpVectorShuffle %v2float %196 %196 0 1 |
| 274 |
%198 = OpFAdd %v2float %197 %195 |
| 275 |
%199 = OpLoad %v4float %FragColor |
| 276 |
%200 = OpVectorShuffle %v4float %199 %198 4 5 2 3 |
| 277 |
OpStore %FragColor %200 |
| 278 |
%201 = OpAccessChain %_ptr_Input_v2float %s %int_4 %int_1 |
| 279 |
%202 = OpExtInst %v2float %1 InterpolateAtOffset %201 %30 |
| 280 |
%203 = OpLoad %v4float %FragColor |
| 281 |
%204 = OpVectorShuffle %v2float %203 %203 0 1 |
| 282 |
%205 = OpFAdd %v2float %204 %202 |
| 283 |
%206 = OpLoad %v4float %FragColor |
| 284 |
%207 = OpVectorShuffle %v4float %206 %205 4 5 2 3 |
| 285 |
OpStore %FragColor %207 |
| 286 |
%208 = OpAccessChain %_ptr_Input_float %s %int_5 %int_0 |
| 287 |
%209 = OpLoad %float %208 |
| 288 |
%210 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 289 |
%211 = OpLoad %float %210 |
| 290 |
%212 = OpFAdd %float %211 %209 |
| 291 |
%213 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 292 |
OpStore %213 %212 |
| 293 |
%214 = OpAccessChain %_ptr_Input_float %s %int_5 %int_1 |
| 294 |
%215 = OpExtInst %float %1 InterpolateAtCentroid %214 |
| 295 |
%216 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 296 |
%217 = OpLoad %float %216 |
| 297 |
%218 = OpFAdd %float %217 %215 |
| 298 |
%219 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 299 |
OpStore %219 %218 |
| 300 |
%220 = OpAccessChain %_ptr_Input_float %s %int_5 %int_0 |
| 301 |
%221 = OpExtInst %float %1 InterpolateAtSample %220 %int_2 |
| 302 |
%222 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 303 |
%223 = OpLoad %float %222 |
| 304 |
%224 = OpFAdd %float %223 %221 |
| 305 |
%225 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 306 |
OpStore %225 %224 |
| 307 |
%226 = OpAccessChain %_ptr_Input_float %s %int_5 %int_1 |
| 308 |
%227 = OpExtInst %float %1 InterpolateAtOffset %226 %30 |
| 309 |
%228 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 310 |
%229 = OpLoad %float %228 |
| 311 |
%230 = OpFAdd %float %229 %227 |
| 312 |
%231 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 313 |
OpStore %231 %230 |
| 314 |
%232 = OpFunctionCall %void %func_ |
| 315 |
OpReturn |
| 316 |
OpFunctionEnd |
| 317 |
%func_ = OpFunction %void None %15 |
| 318 |
%233 = OpLabel |
| 319 |
%234 = OpLoad %v2float %baz |
| 320 |
%235 = OpLoad %v4float %FragColor |
| 321 |
%236 = OpVectorShuffle %v2float %235 %235 0 1 |
| 322 |
%237 = OpFAdd %v2float %236 %234 |
| 323 |
%238 = OpLoad %v4float %FragColor |
| 324 |
%239 = OpVectorShuffle %v4float %238 %237 4 5 2 3 |
| 325 |
OpStore %FragColor %239 |
| 326 |
%240 = OpAccessChain %_ptr_Input_float %baz %uint_0 |
| 327 |
%241 = OpExtInst %float %1 InterpolateAtCentroid %240 |
| 328 |
%242 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 329 |
%243 = OpLoad %float %242 |
| 330 |
%244 = OpFAdd %float %243 %241 |
| 331 |
%245 = OpAccessChain %_ptr_Output_float %FragColor %uint_0 |
| 332 |
OpStore %245 %244 |
| 333 |
%246 = OpAccessChain %_ptr_Input_float %baz %uint_1 |
| 334 |
%247 = OpExtInst %float %1 InterpolateAtSample %246 %int_3 |
| 335 |
%248 = OpAccessChain %_ptr_Output_float %FragColor %uint_1 |
| 336 |
%249 = OpLoad %float %248 |
| 337 |
%250 = OpFAdd %float %249 %247 |
| 338 |
%251 = OpAccessChain %_ptr_Output_float %FragColor %uint_1 |
| 339 |
OpStore %251 %250 |
| 340 |
%252 = OpAccessChain %_ptr_Input_float %baz %uint_1 |
| 341 |
%253 = OpExtInst %float %1 InterpolateAtOffset %252 %30 |
| 342 |
%254 = OpAccessChain %_ptr_Output_float %FragColor %uint_2 |
| 343 |
%255 = OpLoad %float %254 |
| 344 |
%256 = OpFAdd %float %255 %253 |
| 345 |
%257 = OpAccessChain %_ptr_Output_float %FragColor %uint_2 |
| 346 |
OpStore %257 %256 |
| 347 |
%258 = OpAccessChain %_ptr_Input_v2float %a %int_1 |
| 348 |
%259 = OpExtInst %v2float %1 InterpolateAtCentroid %258 |
| 349 |
%260 = OpLoad %v4float %FragColor |
| 350 |
%261 = OpVectorShuffle %v2float %260 %260 0 1 |
| 351 |
%262 = OpFAdd %v2float %261 %259 |
| 352 |
%263 = OpLoad %v4float %FragColor |
| 353 |
%264 = OpVectorShuffle %v4float %263 %262 4 5 2 3 |
| 354 |
OpStore %FragColor %264 |
| 355 |
%265 = OpAccessChain %_ptr_Input_v2float %a %int_0 |
| 356 |
%266 = OpExtInst %v2float %1 InterpolateAtSample %265 %int_2 |
| 357 |
%267 = OpLoad %v4float %FragColor |
| 358 |
%268 = OpVectorShuffle %v2float %267 %267 0 1 |
| 359 |
%269 = OpFAdd %v2float %268 %266 |
| 360 |
%270 = OpLoad %v4float %FragColor |
| 361 |
%271 = OpVectorShuffle %v4float %270 %269 4 5 2 3 |
| 362 |
OpStore %FragColor %271 |
| 363 |
%272 = OpAccessChain %_ptr_Input_v2float %a %int_1 |
| 364 |
%273 = OpExtInst %v2float %1 InterpolateAtOffset %272 %30 |
| 365 |
%274 = OpLoad %v4float %FragColor |
| 366 |
%275 = OpVectorShuffle %v2float %274 %274 0 1 |
| 367 |
%276 = OpFAdd %v2float %275 %273 |
| 368 |
%277 = OpLoad %v4float %FragColor |
| 369 |
%278 = OpVectorShuffle %v4float %277 %276 4 5 2 3 |
| 370 |
OpStore %FragColor %278 |
| 371 |
%279 = OpAccessChain %_ptr_Input_v4float %s %int_2 |
| 372 |
%280 = OpLoad %v4float %279 |
| 373 |
%281 = OpLoad %v4float %FragColor |
| 374 |
%282 = OpFAdd %v4float %281 %280 |
| 375 |
OpStore %FragColor %282 |
| 376 |
%283 = OpAccessChain %_ptr_Input_v4float %s %int_2 |
| 377 |
%284 = OpExtInst %v4float %1 InterpolateAtCentroid %283 |
| 378 |
%285 = OpVectorShuffle %v2float %284 %284 1 1 |
| 379 |
%286 = OpLoad %v4float %FragColor |
| 380 |
%287 = OpVectorShuffle %v2float %286 %286 0 1 |
| 381 |
%288 = OpFAdd %v2float %287 %285 |
| 382 |
%289 = OpLoad %v4float %FragColor |
| 383 |
%290 = OpVectorShuffle %v4float %289 %288 4 5 2 3 |
| 384 |
OpStore %FragColor %290 |
| 385 |
%291 = OpAccessChain %_ptr_Input_v4float %s %int_2 |
| 386 |
%292 = OpExtInst %v4float %1 InterpolateAtSample %291 %int_3 |
| 387 |
%293 = OpVectorShuffle %v2float %292 %292 0 1 |
| 388 |
%294 = OpLoad %v4float %FragColor |
| 389 |
%295 = OpVectorShuffle %v2float %294 %294 1 2 |
| 390 |
%296 = OpFAdd %v2float %295 %293 |
| 391 |
%297 = OpLoad %v4float %FragColor |
| 392 |
%298 = OpVectorShuffle %v4float %297 %296 0 4 5 3 |
| 393 |
OpStore %FragColor %298 |
| 394 |
%299 = OpAccessChain %_ptr_Input_v4float %s %int_2 |
| 395 |
%300 = OpExtInst %v4float %1 InterpolateAtOffset %299 %30 |
| 396 |
%301 = OpVectorShuffle %v2float %300 %300 3 0 |
| 397 |
%302 = OpLoad %v4float %FragColor |
| 398 |
%303 = OpVectorShuffle %v2float %302 %302 2 3 |
| 399 |
%304 = OpFAdd %v2float %303 %301 |
| 400 |
%305 = OpLoad %v4float %FragColor |
| 401 |
%306 = OpVectorShuffle %v4float %305 %304 0 1 4 5 |
| 402 |
OpStore %FragColor %306 |
| 403 |
%308 = OpAccessChain %_ptr_Input_v4float %s %int_3 %int_0 |
| 404 |
%309 = OpLoad %v4float %308 |
| 405 |
%310 = OpLoad %v4float %FragColor |
| 406 |
%311 = OpFAdd %v4float %310 %309 |
| 407 |
OpStore %FragColor %311 |
| 408 |
%312 = OpAccessChain %_ptr_Input__arr_v4float_uint_2 %s %int_3 |
| 409 |
%313 = OpAccessChain %_ptr_Input_v4float %312 %int_1 |
| 410 |
%314 = OpExtInst %v4float %1 InterpolateAtCentroid %313 |
| 411 |
%315 = OpLoad %v4float %FragColor |
| 412 |
%316 = OpFAdd %v4float %315 %314 |
| 413 |
OpStore %FragColor %316 |
| 414 |
%317 = OpAccessChain %_ptr_Input_v4float %s %int_3 %int_0 |
| 415 |
%318 = OpExtInst %v4float %1 InterpolateAtSample %317 %int_2 |
| 416 |
%319 = OpLoad %v4float %FragColor |
| 417 |
%320 = OpFAdd %v4float %319 %318 |
| 418 |
OpStore %FragColor %320 |
| 419 |
%321 = OpAccessChain %_ptr_Input_v4float %s %int_3 %int_1 |
| 420 |
%322 = OpExtInst %v4float %1 InterpolateAtOffset %321 %30 |
| 421 |
%323 = OpLoad %v4float %FragColor |
| 422 |
%324 = OpFAdd %v4float %323 %322 |
| 423 |
OpStore %FragColor %324 |
| 424 |
OpReturn |
| 425 |
OpFunctionEnd |