mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 18:14:18 +01:00
- The Typifier was updated to expect `uint` - Both `glsl` and `spv` frontends where updated to cast the result to `sint`. - Both `glsl` and `spv` backends where updated to cast the result to `uint`. - Remove cast in `msl` backend.
516 lines
16 KiB
Plaintext
516 lines
16 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.1
|
|
; Generator: rspirv
|
|
; Bound: 376
|
|
OpCapability SampledCubeArray
|
|
OpCapability ImageQuery
|
|
OpCapability Image1D
|
|
OpCapability Shader
|
|
OpCapability Sampled1D
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %84 "main" %81
|
|
OpEntryPoint GLCompute %158 "depth_load" %156
|
|
OpEntryPoint Vertex %180 "queries" %178
|
|
OpEntryPoint Vertex %245 "levels_queries" %244
|
|
OpEntryPoint Fragment %282 "texture_sample" %281
|
|
OpEntryPoint Fragment %310 "texture_sample_comparison" %308
|
|
OpEntryPoint Fragment %329 "gather" %328
|
|
OpEntryPoint Fragment %364 "depth_no_comparison" %363
|
|
OpExecutionMode %84 LocalSize 16 1 1
|
|
OpExecutionMode %158 LocalSize 16 1 1
|
|
OpExecutionMode %282 OriginUpperLeft
|
|
OpExecutionMode %310 OriginUpperLeft
|
|
OpExecutionMode %329 OriginUpperLeft
|
|
OpExecutionMode %364 OriginUpperLeft
|
|
OpSource GLSL 450
|
|
OpName %39 "image_mipmapped_src"
|
|
OpName %41 "image_multisampled_src"
|
|
OpName %43 "image_depth_multisampled_src"
|
|
OpName %45 "image_storage_src"
|
|
OpName %47 "image_array_src"
|
|
OpName %49 "image_dup_src"
|
|
OpName %51 "image_1d_src"
|
|
OpName %53 "image_dst"
|
|
OpName %55 "image_1d"
|
|
OpName %57 "image_2d"
|
|
OpName %59 "image_2d_u32"
|
|
OpName %60 "image_2d_i32"
|
|
OpName %62 "image_2d_array"
|
|
OpName %64 "image_cube"
|
|
OpName %66 "image_cube_array"
|
|
OpName %68 "image_3d"
|
|
OpName %70 "image_aa"
|
|
OpName %72 "sampler_reg"
|
|
OpName %74 "sampler_cmp"
|
|
OpName %76 "image_2d_depth"
|
|
OpName %78 "image_cube_depth"
|
|
OpName %81 "local_id"
|
|
OpName %84 "main"
|
|
OpName %156 "local_id"
|
|
OpName %158 "depth_load"
|
|
OpName %180 "queries"
|
|
OpName %245 "levels_queries"
|
|
OpName %282 "texture_sample"
|
|
OpName %310 "texture_sample_comparison"
|
|
OpName %329 "gather"
|
|
OpName %364 "depth_no_comparison"
|
|
OpDecorate %39 DescriptorSet 0
|
|
OpDecorate %39 Binding 0
|
|
OpDecorate %41 DescriptorSet 0
|
|
OpDecorate %41 Binding 3
|
|
OpDecorate %43 DescriptorSet 0
|
|
OpDecorate %43 Binding 4
|
|
OpDecorate %45 NonWritable
|
|
OpDecorate %45 DescriptorSet 0
|
|
OpDecorate %45 Binding 1
|
|
OpDecorate %47 DescriptorSet 0
|
|
OpDecorate %47 Binding 5
|
|
OpDecorate %49 NonWritable
|
|
OpDecorate %49 DescriptorSet 0
|
|
OpDecorate %49 Binding 6
|
|
OpDecorate %51 DescriptorSet 0
|
|
OpDecorate %51 Binding 7
|
|
OpDecorate %53 NonReadable
|
|
OpDecorate %53 DescriptorSet 0
|
|
OpDecorate %53 Binding 2
|
|
OpDecorate %55 DescriptorSet 0
|
|
OpDecorate %55 Binding 0
|
|
OpDecorate %57 DescriptorSet 0
|
|
OpDecorate %57 Binding 1
|
|
OpDecorate %59 DescriptorSet 0
|
|
OpDecorate %59 Binding 2
|
|
OpDecorate %60 DescriptorSet 0
|
|
OpDecorate %60 Binding 3
|
|
OpDecorate %62 DescriptorSet 0
|
|
OpDecorate %62 Binding 4
|
|
OpDecorate %64 DescriptorSet 0
|
|
OpDecorate %64 Binding 5
|
|
OpDecorate %66 DescriptorSet 0
|
|
OpDecorate %66 Binding 6
|
|
OpDecorate %68 DescriptorSet 0
|
|
OpDecorate %68 Binding 7
|
|
OpDecorate %70 DescriptorSet 0
|
|
OpDecorate %70 Binding 8
|
|
OpDecorate %72 DescriptorSet 1
|
|
OpDecorate %72 Binding 0
|
|
OpDecorate %74 DescriptorSet 1
|
|
OpDecorate %74 Binding 1
|
|
OpDecorate %76 DescriptorSet 1
|
|
OpDecorate %76 Binding 2
|
|
OpDecorate %78 DescriptorSet 1
|
|
OpDecorate %78 Binding 3
|
|
OpDecorate %81 BuiltIn LocalInvocationId
|
|
OpDecorate %156 BuiltIn LocalInvocationId
|
|
OpDecorate %178 BuiltIn Position
|
|
OpDecorate %244 BuiltIn Position
|
|
OpDecorate %281 Location 0
|
|
OpDecorate %308 Location 0
|
|
OpDecorate %328 Location 0
|
|
OpDecorate %363 Location 0
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeInt 32 1
|
|
%3 = OpConstant %4 10
|
|
%5 = OpConstant %4 20
|
|
%6 = OpConstant %4 1
|
|
%8 = OpTypeFloat 32
|
|
%7 = OpConstant %8 0.5
|
|
%9 = OpConstant %8 2.3
|
|
%10 = OpConstant %4 3
|
|
%11 = OpConstant %8 2.0
|
|
%13 = OpTypeInt 32 0
|
|
%12 = OpTypeImage %13 2D 0 0 0 1 Unknown
|
|
%14 = OpTypeImage %13 2D 0 0 1 1 Unknown
|
|
%15 = OpTypeImage %8 2D 1 0 1 1 Unknown
|
|
%16 = OpTypeImage %13 2D 0 0 0 2 Rgba8ui
|
|
%17 = OpTypeImage %13 2D 0 1 0 1 Unknown
|
|
%18 = OpTypeImage %13 1D 0 0 0 2 R32ui
|
|
%19 = OpTypeImage %13 1D 0 0 0 1 Unknown
|
|
%20 = OpTypeVector %13 3
|
|
%21 = OpTypeVector %4 2
|
|
%22 = OpTypeVector %13 2
|
|
%23 = OpTypeVector %13 4
|
|
%24 = OpTypeImage %8 1D 0 0 0 1 Unknown
|
|
%25 = OpTypeImage %8 2D 0 0 0 1 Unknown
|
|
%26 = OpTypeImage %4 2D 0 0 0 1 Unknown
|
|
%27 = OpTypeImage %8 2D 0 1 0 1 Unknown
|
|
%28 = OpTypeImage %8 Cube 0 0 0 1 Unknown
|
|
%29 = OpTypeImage %8 Cube 0 1 0 1 Unknown
|
|
%30 = OpTypeImage %8 3D 0 0 0 1 Unknown
|
|
%31 = OpTypeImage %8 2D 0 0 1 1 Unknown
|
|
%32 = OpTypeVector %8 4
|
|
%33 = OpTypeSampler
|
|
%34 = OpTypeVector %8 2
|
|
%35 = OpTypeImage %8 2D 1 0 0 1 Unknown
|
|
%36 = OpTypeImage %8 Cube 1 0 0 1 Unknown
|
|
%37 = OpTypeVector %8 3
|
|
%38 = OpConstantComposite %21 %10 %6
|
|
%40 = OpTypePointer UniformConstant %12
|
|
%39 = OpVariable %40 UniformConstant
|
|
%42 = OpTypePointer UniformConstant %14
|
|
%41 = OpVariable %42 UniformConstant
|
|
%44 = OpTypePointer UniformConstant %15
|
|
%43 = OpVariable %44 UniformConstant
|
|
%46 = OpTypePointer UniformConstant %16
|
|
%45 = OpVariable %46 UniformConstant
|
|
%48 = OpTypePointer UniformConstant %17
|
|
%47 = OpVariable %48 UniformConstant
|
|
%50 = OpTypePointer UniformConstant %18
|
|
%49 = OpVariable %50 UniformConstant
|
|
%52 = OpTypePointer UniformConstant %19
|
|
%51 = OpVariable %52 UniformConstant
|
|
%54 = OpTypePointer UniformConstant %18
|
|
%53 = OpVariable %54 UniformConstant
|
|
%56 = OpTypePointer UniformConstant %24
|
|
%55 = OpVariable %56 UniformConstant
|
|
%58 = OpTypePointer UniformConstant %25
|
|
%57 = OpVariable %58 UniformConstant
|
|
%59 = OpVariable %40 UniformConstant
|
|
%61 = OpTypePointer UniformConstant %26
|
|
%60 = OpVariable %61 UniformConstant
|
|
%63 = OpTypePointer UniformConstant %27
|
|
%62 = OpVariable %63 UniformConstant
|
|
%65 = OpTypePointer UniformConstant %28
|
|
%64 = OpVariable %65 UniformConstant
|
|
%67 = OpTypePointer UniformConstant %29
|
|
%66 = OpVariable %67 UniformConstant
|
|
%69 = OpTypePointer UniformConstant %30
|
|
%68 = OpVariable %69 UniformConstant
|
|
%71 = OpTypePointer UniformConstant %31
|
|
%70 = OpVariable %71 UniformConstant
|
|
%73 = OpTypePointer UniformConstant %33
|
|
%72 = OpVariable %73 UniformConstant
|
|
%75 = OpTypePointer UniformConstant %33
|
|
%74 = OpVariable %75 UniformConstant
|
|
%77 = OpTypePointer UniformConstant %35
|
|
%76 = OpVariable %77 UniformConstant
|
|
%79 = OpTypePointer UniformConstant %36
|
|
%78 = OpVariable %79 UniformConstant
|
|
%82 = OpTypePointer Input %20
|
|
%81 = OpVariable %82 Input
|
|
%85 = OpTypeFunction %2
|
|
%112 = OpTypeVector %4 3
|
|
%156 = OpVariable %82 Input
|
|
%179 = OpTypePointer Output %32
|
|
%178 = OpVariable %179 Output
|
|
%189 = OpConstant %13 0
|
|
%244 = OpVariable %179 Output
|
|
%281 = OpVariable %179 Output
|
|
%289 = OpTypeSampledImage %24
|
|
%292 = OpTypeSampledImage %25
|
|
%309 = OpTypePointer Output %8
|
|
%308 = OpVariable %309 Output
|
|
%316 = OpTypeSampledImage %35
|
|
%321 = OpConstant %8 0.0
|
|
%323 = OpTypeSampledImage %36
|
|
%328 = OpVariable %179 Output
|
|
%340 = OpConstant %13 1
|
|
%343 = OpConstant %13 3
|
|
%348 = OpTypeSampledImage %12
|
|
%351 = OpTypeVector %4 4
|
|
%352 = OpTypeSampledImage %26
|
|
%363 = OpVariable %179 Output
|
|
%84 = OpFunction %2 None %85
|
|
%80 = OpLabel
|
|
%83 = OpLoad %20 %81
|
|
%86 = OpLoad %12 %39
|
|
%87 = OpLoad %14 %41
|
|
%88 = OpLoad %16 %45
|
|
%89 = OpLoad %17 %47
|
|
%90 = OpLoad %19 %51
|
|
%91 = OpLoad %18 %53
|
|
OpBranch %92
|
|
%92 = OpLabel
|
|
%93 = OpImageQuerySize %21 %88
|
|
%94 = OpBitcast %22 %93
|
|
%95 = OpVectorShuffle %22 %83 %83 0 1
|
|
%96 = OpIMul %22 %94 %95
|
|
%97 = OpBitcast %21 %96
|
|
%98 = OpCompositeConstruct %21 %3 %5
|
|
%99 = OpSRem %21 %97 %98
|
|
%100 = OpCompositeExtract %13 %83 2
|
|
%101 = OpBitcast %4 %100
|
|
%102 = OpImageFetch %23 %86 %99 Lod %101
|
|
%103 = OpCompositeExtract %13 %83 2
|
|
%104 = OpBitcast %4 %103
|
|
%105 = OpImageFetch %23 %87 %99 Sample %104
|
|
%106 = OpImageRead %23 %88 %99
|
|
%107 = OpCompositeExtract %13 %83 2
|
|
%108 = OpBitcast %4 %107
|
|
%109 = OpCompositeExtract %13 %83 2
|
|
%110 = OpBitcast %4 %109
|
|
%111 = OpIAdd %4 %110 %6
|
|
%113 = OpCompositeConstruct %112 %99 %108
|
|
%114 = OpImageFetch %23 %89 %113 Lod %111
|
|
%115 = OpCompositeExtract %13 %83 0
|
|
%116 = OpBitcast %4 %115
|
|
%117 = OpCompositeExtract %13 %83 2
|
|
%118 = OpBitcast %4 %117
|
|
%119 = OpImageFetch %23 %90 %116 Lod %118
|
|
%120 = OpBitcast %22 %99
|
|
%121 = OpCompositeExtract %13 %83 2
|
|
%122 = OpBitcast %4 %121
|
|
%123 = OpImageFetch %23 %86 %120 Lod %122
|
|
%124 = OpBitcast %22 %99
|
|
%125 = OpCompositeExtract %13 %83 2
|
|
%126 = OpBitcast %4 %125
|
|
%127 = OpImageFetch %23 %87 %124 Sample %126
|
|
%128 = OpBitcast %22 %99
|
|
%129 = OpImageRead %23 %88 %128
|
|
%130 = OpBitcast %22 %99
|
|
%131 = OpCompositeExtract %13 %83 2
|
|
%132 = OpBitcast %4 %131
|
|
%133 = OpCompositeExtract %13 %83 2
|
|
%134 = OpBitcast %4 %133
|
|
%135 = OpIAdd %4 %134 %6
|
|
%136 = OpBitcast %13 %132
|
|
%137 = OpCompositeConstruct %20 %130 %136
|
|
%138 = OpImageFetch %23 %89 %137 Lod %135
|
|
%139 = OpCompositeExtract %13 %83 0
|
|
%141 = OpCompositeExtract %13 %83 2
|
|
%142 = OpBitcast %4 %141
|
|
%143 = OpImageFetch %23 %90 %139 Lod %142
|
|
%144 = OpCompositeExtract %4 %99 0
|
|
%145 = OpIAdd %23 %102 %105
|
|
%146 = OpIAdd %23 %145 %106
|
|
%147 = OpIAdd %23 %146 %114
|
|
%148 = OpIAdd %23 %147 %119
|
|
OpImageWrite %91 %144 %148
|
|
%149 = OpCompositeExtract %4 %99 0
|
|
%150 = OpBitcast %13 %149
|
|
%151 = OpIAdd %23 %123 %127
|
|
%152 = OpIAdd %23 %151 %129
|
|
%153 = OpIAdd %23 %152 %138
|
|
%154 = OpIAdd %23 %153 %143
|
|
OpImageWrite %91 %150 %154
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%158 = OpFunction %2 None %85
|
|
%155 = OpLabel
|
|
%157 = OpLoad %20 %156
|
|
%159 = OpLoad %15 %43
|
|
%160 = OpLoad %16 %45
|
|
%161 = OpLoad %18 %53
|
|
OpBranch %162
|
|
%162 = OpLabel
|
|
%163 = OpImageQuerySize %21 %160
|
|
%164 = OpBitcast %22 %163
|
|
%165 = OpVectorShuffle %22 %157 %157 0 1
|
|
%166 = OpIMul %22 %164 %165
|
|
%167 = OpBitcast %21 %166
|
|
%168 = OpCompositeConstruct %21 %3 %5
|
|
%169 = OpSRem %21 %167 %168
|
|
%170 = OpCompositeExtract %13 %157 2
|
|
%171 = OpBitcast %4 %170
|
|
%172 = OpImageFetch %32 %159 %169 Sample %171
|
|
%173 = OpCompositeExtract %8 %172 0
|
|
%174 = OpCompositeExtract %4 %169 0
|
|
%175 = OpConvertFToU %13 %173
|
|
%176 = OpCompositeConstruct %23 %175 %175 %175 %175
|
|
OpImageWrite %161 %174 %176
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%180 = OpFunction %2 None %85
|
|
%177 = OpLabel
|
|
%181 = OpLoad %24 %55
|
|
%182 = OpLoad %25 %57
|
|
%183 = OpLoad %27 %62
|
|
%184 = OpLoad %28 %64
|
|
%185 = OpLoad %29 %66
|
|
%186 = OpLoad %30 %68
|
|
%187 = OpLoad %31 %70
|
|
OpBranch %188
|
|
%188 = OpLabel
|
|
%190 = OpImageQuerySizeLod %4 %181 %189
|
|
%191 = OpBitcast %13 %190
|
|
%192 = OpBitcast %4 %191
|
|
%193 = OpImageQuerySizeLod %4 %181 %192
|
|
%194 = OpBitcast %13 %193
|
|
%195 = OpImageQuerySizeLod %21 %182 %189
|
|
%196 = OpBitcast %22 %195
|
|
%197 = OpImageQuerySizeLod %21 %182 %6
|
|
%198 = OpBitcast %22 %197
|
|
%199 = OpImageQuerySizeLod %112 %183 %189
|
|
%200 = OpBitcast %20 %199
|
|
%201 = OpVectorShuffle %22 %200 %200 0 1
|
|
%202 = OpImageQuerySizeLod %112 %183 %6
|
|
%203 = OpBitcast %20 %202
|
|
%204 = OpVectorShuffle %22 %203 %203 0 1
|
|
%205 = OpImageQuerySizeLod %21 %184 %189
|
|
%206 = OpBitcast %22 %205
|
|
%207 = OpImageQuerySizeLod %21 %184 %6
|
|
%208 = OpBitcast %22 %207
|
|
%209 = OpImageQuerySizeLod %112 %185 %189
|
|
%210 = OpBitcast %20 %209
|
|
%211 = OpVectorShuffle %22 %210 %210 0 0
|
|
%212 = OpImageQuerySizeLod %112 %185 %6
|
|
%213 = OpBitcast %20 %212
|
|
%214 = OpVectorShuffle %22 %213 %213 0 0
|
|
%215 = OpImageQuerySizeLod %112 %186 %189
|
|
%216 = OpBitcast %20 %215
|
|
%217 = OpImageQuerySizeLod %112 %186 %6
|
|
%218 = OpBitcast %20 %217
|
|
%219 = OpImageQuerySize %21 %187
|
|
%220 = OpBitcast %22 %219
|
|
%221 = OpCompositeExtract %13 %196 1
|
|
%222 = OpIAdd %13 %191 %221
|
|
%223 = OpCompositeExtract %13 %198 1
|
|
%224 = OpIAdd %13 %222 %223
|
|
%225 = OpCompositeExtract %13 %201 1
|
|
%226 = OpIAdd %13 %224 %225
|
|
%227 = OpCompositeExtract %13 %204 1
|
|
%228 = OpIAdd %13 %226 %227
|
|
%229 = OpCompositeExtract %13 %206 1
|
|
%230 = OpIAdd %13 %228 %229
|
|
%231 = OpCompositeExtract %13 %208 1
|
|
%232 = OpIAdd %13 %230 %231
|
|
%233 = OpCompositeExtract %13 %211 1
|
|
%234 = OpIAdd %13 %232 %233
|
|
%235 = OpCompositeExtract %13 %214 1
|
|
%236 = OpIAdd %13 %234 %235
|
|
%237 = OpCompositeExtract %13 %216 2
|
|
%238 = OpIAdd %13 %236 %237
|
|
%239 = OpCompositeExtract %13 %218 2
|
|
%240 = OpIAdd %13 %238 %239
|
|
%241 = OpConvertUToF %8 %240
|
|
%242 = OpCompositeConstruct %32 %241 %241 %241 %241
|
|
OpStore %178 %242
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%245 = OpFunction %2 None %85
|
|
%243 = OpLabel
|
|
%246 = OpLoad %25 %57
|
|
%247 = OpLoad %27 %62
|
|
%248 = OpLoad %28 %64
|
|
%249 = OpLoad %29 %66
|
|
%250 = OpLoad %30 %68
|
|
%251 = OpLoad %31 %70
|
|
OpBranch %252
|
|
%252 = OpLabel
|
|
%253 = OpImageQueryLevels %4 %246
|
|
%254 = OpBitcast %13 %253
|
|
%255 = OpImageQueryLevels %4 %247
|
|
%256 = OpBitcast %13 %255
|
|
%257 = OpImageQuerySizeLod %112 %247 %189
|
|
%258 = OpCompositeExtract %4 %257 2
|
|
%259 = OpBitcast %13 %258
|
|
%260 = OpImageQueryLevels %4 %248
|
|
%261 = OpBitcast %13 %260
|
|
%262 = OpImageQueryLevels %4 %249
|
|
%263 = OpBitcast %13 %262
|
|
%264 = OpImageQuerySizeLod %112 %249 %189
|
|
%265 = OpCompositeExtract %4 %264 2
|
|
%266 = OpBitcast %13 %265
|
|
%267 = OpImageQueryLevels %4 %250
|
|
%268 = OpBitcast %13 %267
|
|
%269 = OpImageQuerySamples %4 %251
|
|
%270 = OpBitcast %13 %269
|
|
%271 = OpIAdd %13 %259 %266
|
|
%272 = OpIAdd %13 %271 %270
|
|
%273 = OpIAdd %13 %272 %254
|
|
%274 = OpIAdd %13 %273 %256
|
|
%275 = OpIAdd %13 %274 %268
|
|
%276 = OpIAdd %13 %275 %261
|
|
%277 = OpIAdd %13 %276 %263
|
|
%278 = OpConvertUToF %8 %277
|
|
%279 = OpCompositeConstruct %32 %278 %278 %278 %278
|
|
OpStore %244 %279
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%282 = OpFunction %2 None %85
|
|
%280 = OpLabel
|
|
%283 = OpLoad %24 %55
|
|
%284 = OpLoad %25 %57
|
|
%285 = OpLoad %33 %72
|
|
OpBranch %286
|
|
%286 = OpLabel
|
|
%287 = OpCompositeConstruct %34 %7 %7
|
|
%288 = OpCompositeExtract %8 %287 0
|
|
%290 = OpSampledImage %289 %283 %285
|
|
%291 = OpImageSampleImplicitLod %32 %290 %288
|
|
%293 = OpSampledImage %292 %284 %285
|
|
%294 = OpImageSampleImplicitLod %32 %293 %287
|
|
%295 = OpSampledImage %292 %284 %285
|
|
%296 = OpImageSampleImplicitLod %32 %295 %287 ConstOffset %38
|
|
%297 = OpSampledImage %292 %284 %285
|
|
%298 = OpImageSampleExplicitLod %32 %297 %287 Lod %9
|
|
%299 = OpSampledImage %292 %284 %285
|
|
%300 = OpImageSampleExplicitLod %32 %299 %287 Lod|ConstOffset %9 %38
|
|
%301 = OpSampledImage %292 %284 %285
|
|
%302 = OpImageSampleImplicitLod %32 %301 %287 Bias|ConstOffset %11 %38
|
|
%303 = OpFAdd %32 %291 %294
|
|
%304 = OpFAdd %32 %303 %296
|
|
%305 = OpFAdd %32 %304 %298
|
|
%306 = OpFAdd %32 %305 %300
|
|
OpStore %281 %306
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%310 = OpFunction %2 None %85
|
|
%307 = OpLabel
|
|
%311 = OpLoad %33 %74
|
|
%312 = OpLoad %35 %76
|
|
%313 = OpLoad %36 %78
|
|
OpBranch %314
|
|
%314 = OpLabel
|
|
%315 = OpCompositeConstruct %34 %7 %7
|
|
%317 = OpSampledImage %316 %312 %311
|
|
%318 = OpImageSampleDrefImplicitLod %8 %317 %315 %7
|
|
%319 = OpSampledImage %316 %312 %311
|
|
%320 = OpImageSampleDrefExplicitLod %8 %319 %315 %7 Lod %321
|
|
%322 = OpCompositeConstruct %37 %7 %7 %7
|
|
%324 = OpSampledImage %323 %313 %311
|
|
%325 = OpImageSampleDrefExplicitLod %8 %324 %322 %7 Lod %321
|
|
%326 = OpFAdd %8 %318 %320
|
|
OpStore %308 %326
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%329 = OpFunction %2 None %85
|
|
%327 = OpLabel
|
|
%330 = OpLoad %25 %57
|
|
%331 = OpLoad %12 %59
|
|
%332 = OpLoad %26 %60
|
|
%333 = OpLoad %33 %72
|
|
%334 = OpLoad %33 %74
|
|
%335 = OpLoad %35 %76
|
|
OpBranch %336
|
|
%336 = OpLabel
|
|
%337 = OpCompositeConstruct %34 %7 %7
|
|
%338 = OpSampledImage %292 %330 %333
|
|
%339 = OpImageGather %32 %338 %337 %340
|
|
%341 = OpSampledImage %292 %330 %333
|
|
%342 = OpImageGather %32 %341 %337 %343 ConstOffset %38
|
|
%344 = OpSampledImage %316 %335 %334
|
|
%345 = OpImageDrefGather %32 %344 %337 %7
|
|
%346 = OpSampledImage %316 %335 %334
|
|
%347 = OpImageDrefGather %32 %346 %337 %7 ConstOffset %38
|
|
%349 = OpSampledImage %348 %331 %333
|
|
%350 = OpImageGather %23 %349 %337 %189
|
|
%353 = OpSampledImage %352 %332 %333
|
|
%354 = OpImageGather %351 %353 %337 %189
|
|
%355 = OpConvertUToF %32 %350
|
|
%356 = OpConvertSToF %32 %354
|
|
%357 = OpFAdd %32 %355 %356
|
|
%358 = OpFAdd %32 %339 %342
|
|
%359 = OpFAdd %32 %358 %345
|
|
%360 = OpFAdd %32 %359 %347
|
|
%361 = OpFAdd %32 %360 %357
|
|
OpStore %328 %361
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%364 = OpFunction %2 None %85
|
|
%362 = OpLabel
|
|
%365 = OpLoad %33 %72
|
|
%366 = OpLoad %35 %76
|
|
OpBranch %367
|
|
%367 = OpLabel
|
|
%368 = OpCompositeConstruct %34 %7 %7
|
|
%369 = OpSampledImage %316 %366 %365
|
|
%370 = OpImageSampleImplicitLod %32 %369 %368
|
|
%371 = OpCompositeExtract %8 %370 0
|
|
%372 = OpSampledImage %316 %366 %365
|
|
%373 = OpImageGather %32 %372 %368 %189
|
|
%374 = OpCompositeConstruct %32 %371 %371 %371 %371
|
|
%375 = OpFAdd %32 %374 %373
|
|
OpStore %363 %375
|
|
OpReturn
|
|
OpFunctionEnd |