1spv.texture.frag
2WARNING: 0:10: varying deprecated in version 130; may be removed in future release
3WARNING: 0:11: varying deprecated in version 130; may be removed in future release
4WARNING: 0:12: varying deprecated in version 130; may be removed in future release
5
6// Module Version 10000
7// Generated by (magic number): 8000a
8// Id's are bound by 305
9
10                              Capability Shader
11                              Capability Sampled1D
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint Fragment 4  "main" 47 291 294 297 303 304
15                              ExecutionMode 4 OriginUpperLeft
16                              Source GLSL 140
17                              Name 4  "main"
18                              Name 8  "blendscale"
19                              Name 10  "bias"
20                              Name 12  "lod"
21                              Name 14  "proj"
22                              Name 15  "coords1D"
23                              Name 18  "coords3D"
24                              Name 24  "coords4D"
25                              Name 26  "color"
26                              Name 32  "texSampler1D"
27                              Name 47  "coords2D"
28                              Name 76  "texSampler2D"
29                              Name 104  "texSampler3D"
30                              Name 130  "texSamplerCube"
31                              Name 145  "shadowSampler1D"
32                              Name 164  "shadowSampler2D"
33                              Name 221  "iCoords2D"
34                              Name 226  "iLod"
35                              Name 236  "gradX"
36                              Name 239  "gradY"
37                              Name 291  "gl_FragColor"
38                              Name 294  "u"
39                              Name 297  "blend"
40                              Name 303  "scale"
41                              Name 304  "t"
42                              Decorate 32(texSampler1D) DescriptorSet 0
43                              Decorate 32(texSampler1D) Binding 0
44                              Decorate 47(coords2D) Location 4
45                              Decorate 76(texSampler2D) DescriptorSet 0
46                              Decorate 76(texSampler2D) Binding 1
47                              Decorate 104(texSampler3D) DescriptorSet 0
48                              Decorate 104(texSampler3D) Binding 2
49                              Decorate 130(texSamplerCube) DescriptorSet 0
50                              Decorate 130(texSamplerCube) Binding 3
51                              Decorate 145(shadowSampler1D) DescriptorSet 0
52                              Decorate 145(shadowSampler1D) Binding 4
53                              Decorate 164(shadowSampler2D) DescriptorSet 0
54                              Decorate 164(shadowSampler2D) Binding 5
55                              Decorate 291(gl_FragColor) Location 0
56                              Decorate 294(u) Location 2
57                              Decorate 297(blend) Location 0
58                              Decorate 303(scale) Location 1
59                              Decorate 304(t) Location 3
60               2:             TypeVoid
61               3:             TypeFunction 2
62               6:             TypeFloat 32
63               7:             TypePointer Function 6(float)
64               9:    6(float) Constant 1071971828
65              11:    6(float) Constant 1073741824
66              13:    6(float) Constant 1077936128
67              16:             TypeVector 6(float) 3
68              17:             TypePointer Function 16(fvec3)
69              19:    6(float) Constant 1076753334
70              20:    6(float) Constant 1079836148
71              21:   16(fvec3) ConstantComposite 9 19 20
72              22:             TypeVector 6(float) 4
73              23:             TypePointer Function 22(fvec4)
74              25:   22(fvec4) ConstantComposite 9 19 20 11
75              27:    6(float) Constant 0
76              28:   22(fvec4) ConstantComposite 27 27 27 27
77              29:             TypeImage 6(float) 1D sampled format:Unknown
78              30:             TypeSampledImage 29
79              31:             TypePointer UniformConstant 30
8032(texSampler1D):     31(ptr) Variable UniformConstant
81              45:             TypeVector 6(float) 2
82              46:             TypePointer Input 45(fvec2)
83    47(coords2D):     46(ptr) Variable Input
84              73:             TypeImage 6(float) 2D sampled format:Unknown
85              74:             TypeSampledImage 73
86              75:             TypePointer UniformConstant 74
8776(texSampler2D):     75(ptr) Variable UniformConstant
88             101:             TypeImage 6(float) 3D sampled format:Unknown
89             102:             TypeSampledImage 101
90             103:             TypePointer UniformConstant 102
91104(texSampler3D):    103(ptr) Variable UniformConstant
92             127:             TypeImage 6(float) Cube sampled format:Unknown
93             128:             TypeSampledImage 127
94             129:             TypePointer UniformConstant 128
95130(texSamplerCube):    129(ptr) Variable UniformConstant
96             142:             TypeImage 6(float) 1D depth sampled format:Unknown
97             143:             TypeSampledImage 142
98             144:             TypePointer UniformConstant 143
99145(shadowSampler1D):    144(ptr) Variable UniformConstant
100             161:             TypeImage 6(float) 2D depth sampled format:Unknown
101             162:             TypeSampledImage 161
102             163:             TypePointer UniformConstant 162
103164(shadowSampler2D):    163(ptr) Variable UniformConstant
104             218:             TypeInt 32 1
105             219:             TypeVector 218(int) 2
106             220:             TypePointer Function 219(ivec2)
107             222:    218(int) Constant 0
108             223:    218(int) Constant 5
109             224:  219(ivec2) ConstantComposite 222 223
110             225:             TypePointer Function 218(int)
111             227:    218(int) Constant 1
112             235:             TypePointer Function 45(fvec2)
113             264:    218(int) Constant 3
114             265:    218(int) Constant 4294967289
115             266:  219(ivec2) ConstantComposite 264 265
116             290:             TypePointer Output 22(fvec4)
117291(gl_FragColor):    290(ptr) Variable Output
118             293:             TypePointer Input 22(fvec4)
119          294(u):    293(ptr) Variable Input
120             296:             TypePointer Input 6(float)
121      297(blend):    296(ptr) Variable Input
122      303(scale):     46(ptr) Variable Input
123          304(t):     46(ptr) Variable Input
124         4(main):           2 Function None 3
125               5:             Label
126   8(blendscale):      7(ptr) Variable Function
127        10(bias):      7(ptr) Variable Function
128         12(lod):      7(ptr) Variable Function
129        14(proj):      7(ptr) Variable Function
130    15(coords1D):      7(ptr) Variable Function
131    18(coords3D):     17(ptr) Variable Function
132    24(coords4D):     23(ptr) Variable Function
133       26(color):     23(ptr) Variable Function
134  221(iCoords2D):    220(ptr) Variable Function
135       226(iLod):    225(ptr) Variable Function
136      236(gradX):    235(ptr) Variable Function
137      239(gradY):    235(ptr) Variable Function
138                              Store 8(blendscale) 9
139                              Store 10(bias) 11
140                              Store 12(lod) 13
141                              Store 14(proj) 11
142                              Store 15(coords1D) 9
143                              Store 18(coords3D) 21
144                              Store 24(coords4D) 25
145                              Store 26(color) 28
146              33:          30 Load 32(texSampler1D)
147              34:    6(float) Load 15(coords1D)
148              35:   22(fvec4) ImageSampleImplicitLod 33 34
149              36:   22(fvec4) Load 26(color)
150              37:   22(fvec4) FAdd 36 35
151                              Store 26(color) 37
152              38:          30 Load 32(texSampler1D)
153              39:    6(float) Load 15(coords1D)
154              40:    6(float) Load 10(bias)
155              41:   22(fvec4) ImageSampleImplicitLod 38 39 Bias 40
156              42:   22(fvec4) Load 26(color)
157              43:   22(fvec4) FAdd 42 41
158                              Store 26(color) 43
159              44:          30 Load 32(texSampler1D)
160              48:   45(fvec2) Load 47(coords2D)
161              49:   22(fvec4) ImageSampleProjImplicitLod 44 48
162              50:   22(fvec4) Load 26(color)
163              51:   22(fvec4) FAdd 50 49
164                              Store 26(color) 51
165              52:          30 Load 32(texSampler1D)
166              53:   22(fvec4) Load 24(coords4D)
167              54:    6(float) CompositeExtract 53 3
168              55:   22(fvec4) CompositeInsert 54 53 1
169              56:   22(fvec4) ImageSampleProjImplicitLod 52 55
170              57:   22(fvec4) Load 26(color)
171              58:   22(fvec4) FAdd 57 56
172                              Store 26(color) 58
173              59:          30 Load 32(texSampler1D)
174              60:   45(fvec2) Load 47(coords2D)
175              61:    6(float) Load 10(bias)
176              62:   22(fvec4) ImageSampleProjImplicitLod 59 60 Bias 61
177              63:   22(fvec4) Load 26(color)
178              64:   22(fvec4) FAdd 63 62
179                              Store 26(color) 64
180              65:          30 Load 32(texSampler1D)
181              66:   22(fvec4) Load 24(coords4D)
182              67:    6(float) Load 10(bias)
183              68:    6(float) CompositeExtract 66 3
184              69:   22(fvec4) CompositeInsert 68 66 1
185              70:   22(fvec4) ImageSampleProjImplicitLod 65 69 Bias 67
186              71:   22(fvec4) Load 26(color)
187              72:   22(fvec4) FAdd 71 70
188                              Store 26(color) 72
189              77:          74 Load 76(texSampler2D)
190              78:   45(fvec2) Load 47(coords2D)
191              79:   22(fvec4) ImageSampleImplicitLod 77 78
192              80:   22(fvec4) Load 26(color)
193              81:   22(fvec4) FAdd 80 79
194                              Store 26(color) 81
195              82:          74 Load 76(texSampler2D)
196              83:   45(fvec2) Load 47(coords2D)
197              84:    6(float) Load 10(bias)
198              85:   22(fvec4) ImageSampleImplicitLod 82 83 Bias 84
199              86:   22(fvec4) Load 26(color)
200              87:   22(fvec4) FAdd 86 85
201                              Store 26(color) 87
202              88:          74 Load 76(texSampler2D)
203              89:   16(fvec3) Load 18(coords3D)
204              90:   22(fvec4) ImageSampleProjImplicitLod 88 89
205              91:   22(fvec4) Load 26(color)
206              92:   22(fvec4) FAdd 91 90
207                              Store 26(color) 92
208              93:          74 Load 76(texSampler2D)
209              94:   22(fvec4) Load 24(coords4D)
210              95:    6(float) Load 10(bias)
211              96:    6(float) CompositeExtract 94 3
212              97:   22(fvec4) CompositeInsert 96 94 2
213              98:   22(fvec4) ImageSampleProjImplicitLod 93 97 Bias 95
214              99:   22(fvec4) Load 26(color)
215             100:   22(fvec4) FAdd 99 98
216                              Store 26(color) 100
217             105:         102 Load 104(texSampler3D)
218             106:   16(fvec3) Load 18(coords3D)
219             107:   22(fvec4) ImageSampleImplicitLod 105 106
220             108:   22(fvec4) Load 26(color)
221             109:   22(fvec4) FAdd 108 107
222                              Store 26(color) 109
223             110:         102 Load 104(texSampler3D)
224             111:   16(fvec3) Load 18(coords3D)
225             112:    6(float) Load 10(bias)
226             113:   22(fvec4) ImageSampleImplicitLod 110 111 Bias 112
227             114:   22(fvec4) Load 26(color)
228             115:   22(fvec4) FAdd 114 113
229                              Store 26(color) 115
230             116:         102 Load 104(texSampler3D)
231             117:   22(fvec4) Load 24(coords4D)
232             118:   22(fvec4) ImageSampleProjImplicitLod 116 117
233             119:   22(fvec4) Load 26(color)
234             120:   22(fvec4) FAdd 119 118
235                              Store 26(color) 120
236             121:         102 Load 104(texSampler3D)
237             122:   22(fvec4) Load 24(coords4D)
238             123:    6(float) Load 10(bias)
239             124:   22(fvec4) ImageSampleProjImplicitLod 121 122 Bias 123
240             125:   22(fvec4) Load 26(color)
241             126:   22(fvec4) FAdd 125 124
242                              Store 26(color) 126
243             131:         128 Load 130(texSamplerCube)
244             132:   16(fvec3) Load 18(coords3D)
245             133:   22(fvec4) ImageSampleImplicitLod 131 132
246             134:   22(fvec4) Load 26(color)
247             135:   22(fvec4) FAdd 134 133
248                              Store 26(color) 135
249             136:         128 Load 130(texSamplerCube)
250             137:   16(fvec3) Load 18(coords3D)
251             138:    6(float) Load 10(bias)
252             139:   22(fvec4) ImageSampleImplicitLod 136 137 Bias 138
253             140:   22(fvec4) Load 26(color)
254             141:   22(fvec4) FAdd 140 139
255                              Store 26(color) 141
256             146:         143 Load 145(shadowSampler1D)
257             147:   16(fvec3) Load 18(coords3D)
258             148:    6(float) CompositeExtract 147 2
259             149:    6(float) ImageSampleDrefImplicitLod 146 147 148
260             150:   22(fvec4) Load 26(color)
261             151:   22(fvec4) CompositeConstruct 149 149 149 149
262             152:   22(fvec4) FAdd 150 151
263                              Store 26(color) 152
264             153:         143 Load 145(shadowSampler1D)
265             154:   16(fvec3) Load 18(coords3D)
266             155:    6(float) Load 10(bias)
267             156:    6(float) CompositeExtract 154 2
268             157:    6(float) ImageSampleDrefImplicitLod 153 154 156 Bias 155
269             158:   22(fvec4) Load 26(color)
270             159:   22(fvec4) CompositeConstruct 157 157 157 157
271             160:   22(fvec4) FAdd 158 159
272                              Store 26(color) 160
273             165:         162 Load 164(shadowSampler2D)
274             166:   16(fvec3) Load 18(coords3D)
275             167:    6(float) CompositeExtract 166 2
276             168:    6(float) ImageSampleDrefImplicitLod 165 166 167
277             169:   22(fvec4) Load 26(color)
278             170:   22(fvec4) CompositeConstruct 168 168 168 168
279             171:   22(fvec4) FAdd 169 170
280                              Store 26(color) 171
281             172:         162 Load 164(shadowSampler2D)
282             173:   16(fvec3) Load 18(coords3D)
283             174:    6(float) Load 10(bias)
284             175:    6(float) CompositeExtract 173 2
285             176:    6(float) ImageSampleDrefImplicitLod 172 173 175 Bias 174
286             177:   22(fvec4) Load 26(color)
287             178:   22(fvec4) CompositeConstruct 176 176 176 176
288             179:   22(fvec4) FAdd 177 178
289                              Store 26(color) 179
290             180:         143 Load 145(shadowSampler1D)
291             181:   22(fvec4) Load 24(coords4D)
292             182:    6(float) CompositeExtract 181 2
293             183:    6(float) CompositeExtract 181 3
294             184:   22(fvec4) CompositeInsert 183 181 1
295             185:    6(float) ImageSampleProjDrefImplicitLod 180 184 182
296             186:   22(fvec4) Load 26(color)
297             187:   22(fvec4) CompositeConstruct 185 185 185 185
298             188:   22(fvec4) FAdd 186 187
299                              Store 26(color) 188
300             189:         143 Load 145(shadowSampler1D)
301             190:   22(fvec4) Load 24(coords4D)
302             191:    6(float) Load 10(bias)
303             192:    6(float) CompositeExtract 190 2
304             193:    6(float) CompositeExtract 190 3
305             194:   22(fvec4) CompositeInsert 193 190 1
306             195:    6(float) ImageSampleProjDrefImplicitLod 189 194 192 Bias 191
307             196:   22(fvec4) Load 26(color)
308             197:   22(fvec4) CompositeConstruct 195 195 195 195
309             198:   22(fvec4) FAdd 196 197
310                              Store 26(color) 198
311             199:         162 Load 164(shadowSampler2D)
312             200:   22(fvec4) Load 24(coords4D)
313             201:    6(float) CompositeExtract 200 2
314             202:    6(float) CompositeExtract 200 3
315             203:   22(fvec4) CompositeInsert 202 200 2
316             204:    6(float) ImageSampleProjDrefImplicitLod 199 203 201
317             205:   22(fvec4) Load 26(color)
318             206:   22(fvec4) CompositeConstruct 204 204 204 204
319             207:   22(fvec4) FAdd 205 206
320                              Store 26(color) 207
321             208:         162 Load 164(shadowSampler2D)
322             209:   22(fvec4) Load 24(coords4D)
323             210:    6(float) Load 10(bias)
324             211:    6(float) CompositeExtract 209 2
325             212:    6(float) CompositeExtract 209 3
326             213:   22(fvec4) CompositeInsert 212 209 2
327             214:    6(float) ImageSampleProjDrefImplicitLod 208 213 211 Bias 210
328             215:   22(fvec4) Load 26(color)
329             216:   22(fvec4) CompositeConstruct 214 214 214 214
330             217:   22(fvec4) FAdd 215 216
331                              Store 26(color) 217
332                              Store 221(iCoords2D) 224
333                              Store 226(iLod) 227
334             228:          74 Load 76(texSampler2D)
335             229:  219(ivec2) Load 221(iCoords2D)
336             230:    218(int) Load 226(iLod)
337             231:          73 Image 228
338             232:   22(fvec4) ImageFetch 231 229 Lod 230
339             233:   22(fvec4) Load 26(color)
340             234:   22(fvec4) FAdd 233 232
341                              Store 26(color) 234
342             237:   45(fvec2) Load 47(coords2D)
343             238:   45(fvec2) DPdx 237
344                              Store 236(gradX) 238
345             240:   45(fvec2) Load 47(coords2D)
346             241:   45(fvec2) DPdy 240
347                              Store 239(gradY) 241
348             242:          74 Load 76(texSampler2D)
349             243:   45(fvec2) Load 47(coords2D)
350             244:   45(fvec2) Load 236(gradX)
351             245:   45(fvec2) Load 239(gradY)
352             246:   22(fvec4) ImageSampleExplicitLod 242 243 Grad 244 245
353             247:   22(fvec4) Load 26(color)
354             248:   22(fvec4) FAdd 247 246
355                              Store 26(color) 248
356             249:          74 Load 76(texSampler2D)
357             250:   45(fvec2) Load 47(coords2D)
358             251:    6(float) Load 14(proj)
359             252:    6(float) CompositeExtract 250 0
360             253:    6(float) CompositeExtract 250 1
361             254:   16(fvec3) CompositeConstruct 252 253 251
362             255:   45(fvec2) Load 236(gradX)
363             256:   45(fvec2) Load 239(gradY)
364             257:   22(fvec4) ImageSampleProjExplicitLod 249 254 Grad 255 256
365             258:   22(fvec4) Load 26(color)
366             259:   22(fvec4) FAdd 258 257
367                              Store 26(color) 259
368             260:          74 Load 76(texSampler2D)
369             261:   45(fvec2) Load 47(coords2D)
370             262:   45(fvec2) Load 236(gradX)
371             263:   45(fvec2) Load 239(gradY)
372             267:   22(fvec4) ImageSampleExplicitLod 260 261 Grad ConstOffset 262 263 266
373             268:   22(fvec4) Load 26(color)
374             269:   22(fvec4) FAdd 268 267
375                              Store 26(color) 269
376             270:          74 Load 76(texSampler2D)
377             271:   16(fvec3) Load 18(coords3D)
378             272:   45(fvec2) Load 236(gradX)
379             273:   45(fvec2) Load 239(gradY)
380             274:   22(fvec4) ImageSampleProjExplicitLod 270 271 Grad ConstOffset 272 273 266
381             275:   22(fvec4) Load 26(color)
382             276:   22(fvec4) FAdd 275 274
383                              Store 26(color) 276
384             277:         162 Load 164(shadowSampler2D)
385             278:   45(fvec2) Load 47(coords2D)
386             279:    6(float) Load 12(lod)
387             280:    6(float) CompositeExtract 278 0
388             281:    6(float) CompositeExtract 278 1
389             282:   16(fvec3) CompositeConstruct 280 281 279
390             283:   45(fvec2) Load 236(gradX)
391             284:   45(fvec2) Load 239(gradY)
392             285:    6(float) CompositeExtract 282 2
393             286:    6(float) ImageSampleDrefExplicitLod 277 282 285 Grad 283 284
394             287:   22(fvec4) Load 26(color)
395             288:   22(fvec4) CompositeConstruct 286 286 286 286
396             289:   22(fvec4) FAdd 287 288
397                              Store 26(color) 289
398             292:   22(fvec4) Load 26(color)
399             295:   22(fvec4) Load 294(u)
400             298:    6(float) Load 297(blend)
401             299:    6(float) Load 8(blendscale)
402             300:    6(float) FMul 298 299
403             301:   22(fvec4) CompositeConstruct 300 300 300 300
404             302:   22(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 292 295 301
405                              Store 291(gl_FragColor) 302
406                              Return
407                              FunctionEnd
408