blob: 2a5973ef7a6fc4c90d4facb94478142edb7c70c5 [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.newTexture.frag
2Warning, version 430 is not yet complete; most version-specific features are present, but some are missing.
3
4
5Linked fragment stage:
6
7
8// Module Version 10000
9// Generated by (magic number): 80001
10// Id's are bound by 278
11
12 Capability Shader
13 1: ExtInstImport "GLSL.std.450"
14 MemoryModel Logical GLSL450
15 EntryPoint Fragment 4 "main" 29 17 55 26 84 91 81 277 247
16 ExecutionMode 4 OriginLowerLeft
17 Source GLSL 430
18 Name 4 "main"
19 Name 9 "v"
20 Name 13 "s2D"
21 Name 17 "c2D"
22 Name 23 "sCubeArrayShadow"
23 Name 26 "c4D"
24 Name 29 "c1D"
25 Name 42 "s3D"
26 Name 51 "s2DArray"
27 Name 55 "c3D"
28 Name 64 "s2DShadow"
29 Name 81 "ic3D"
30 Name 84 "ic1D"
31 Name 91 "ic2D"
32 Name 100 "sr"
33 Name 125 "sCube"
34 Name 136 "s2DArrayShadow"
35 Name 164 "iv"
36 Name 168 "is2D"
37 Name 203 "is3D"
38 Name 215 "isCube"
39 Name 227 "is2DArray"
40 Name 237 "iv2"
41 Name 241 "sCubeShadow"
42 Name 247 "FragData"
43 Name 259 "is2Dms"
44 Name 263 "us2D"
45 Name 267 "us3D"
46 Name 271 "usCube"
47 Name 275 "us2DArray"
48 Name 277 "ic4D"
49 Decorate 81(ic3D) Flat
50 Decorate 84(ic1D) Flat
51 Decorate 91(ic2D) Flat
52 Decorate 277(ic4D) Flat
53 2: TypeVoid
54 3: TypeFunction 2
55 6: TypeFloat 32
56 7: TypeVector 6(float) 4
57 8: TypePointer Function 7(fvec4)
58 10: TypeImage 6(float) 2D sampled format:Unknown
59 11: TypeSampledImage 10
60 12: TypePointer UniformConstant 11
61 13(s2D): 12(ptr) Variable UniformConstant
62 15: TypeVector 6(float) 2
63 16: TypePointer Input 15(fvec2)
64 17(c2D): 16(ptr) Variable Input
65 20: TypeImage 6(float) Cube depth array sampled format:Unknown
66 21: TypeSampledImage 20
67 22: TypePointer UniformConstant 21
6823(sCubeArrayShadow): 22(ptr) Variable UniformConstant
69 25: TypePointer Input 7(fvec4)
70 26(c4D): 25(ptr) Variable Input
71 28: TypePointer Input 6(float)
72 29(c1D): 28(ptr) Variable Input
73 32: TypeInt 32 0
74 33: 32(int) Constant 1
75 34: TypePointer Function 6(float)
76 39: TypeImage 6(float) 3D sampled format:Unknown
77 40: TypeSampledImage 39
78 41: TypePointer UniformConstant 40
79 42(s3D): 41(ptr) Variable UniformConstant
80 48: TypeImage 6(float) 2D array sampled format:Unknown
81 49: TypeSampledImage 48
82 50: TypePointer UniformConstant 49
83 51(s2DArray): 50(ptr) Variable UniformConstant
84 53: TypeVector 6(float) 3
85 54: TypePointer Input 53(fvec3)
86 55(c3D): 54(ptr) Variable Input
87 57: 6(float) Constant 1067030938
88 61: TypeImage 6(float) 2D depth sampled format:Unknown
89 62: TypeSampledImage 61
90 63: TypePointer UniformConstant 62
91 64(s2DShadow): 63(ptr) Variable UniformConstant
92 67: TypeInt 32 1
93 68: TypeVector 67(int) 2
94 69: 67(int) Constant 3
95 70: 68(ivec2) ConstantComposite 69 69
96 79: TypeVector 67(int) 3
97 80: TypePointer Input 79(ivec3)
98 81(ic3D): 80(ptr) Variable Input
99 83: TypePointer Input 67(int)
100 84(ic1D): 83(ptr) Variable Input
101 90: TypePointer Input 68(ivec2)
102 91(ic2D): 90(ptr) Variable Input
103 93: 67(int) Constant 4
104 97: TypeImage 6(float) Rect sampled format:Unknown
105 98: TypeSampledImage 97
106 99: TypePointer UniformConstant 98
107 100(sr): 99(ptr) Variable UniformConstant
108 103: 68(ivec2) ConstantComposite 93 93
109 122: TypeImage 6(float) Cube sampled format:Unknown
110 123: TypeSampledImage 122
111 124: TypePointer UniformConstant 123
112 125(sCube): 124(ptr) Variable UniformConstant
113 133: TypeImage 6(float) 2D depth array sampled format:Unknown
114 134: TypeSampledImage 133
115 135: TypePointer UniformConstant 134
116136(s2DArrayShadow): 135(ptr) Variable UniformConstant
117 143: 32(int) Constant 0
118 162: TypeVector 67(int) 4
119 163: TypePointer Function 162(ivec4)
120 165: TypeImage 67(int) 2D sampled format:Unknown
121 166: TypeSampledImage 165
122 167: TypePointer UniformConstant 166
123 168(is2D): 167(ptr) Variable UniformConstant
124 200: TypeImage 67(int) 3D sampled format:Unknown
125 201: TypeSampledImage 200
126 202: TypePointer UniformConstant 201
127 203(is3D): 202(ptr) Variable UniformConstant
128 206: 6(float) Constant 1082549862
129 212: TypeImage 67(int) Cube sampled format:Unknown
130 213: TypeSampledImage 212
131 214: TypePointer UniformConstant 213
132 215(isCube): 214(ptr) Variable UniformConstant
133 224: TypeImage 67(int) 2D array sampled format:Unknown
134 225: TypeSampledImage 224
135 226: TypePointer UniformConstant 225
136 227(is2DArray): 226(ptr) Variable UniformConstant
137 236: TypePointer Function 68(ivec2)
138 238: TypeImage 6(float) Cube depth sampled format:Unknown
139 239: TypeSampledImage 238
140 240: TypePointer UniformConstant 239
141241(sCubeShadow): 240(ptr) Variable UniformConstant
142 243: 67(int) Constant 2
143 246: TypePointer Output 7(fvec4)
144 247(FragData): 246(ptr) Variable Output
145 251: 6(float) Constant 0
146 256: TypeImage 67(int) 2D multi-sampled sampled format:Unknown
147 257: TypeSampledImage 256
148 258: TypePointer UniformConstant 257
149 259(is2Dms): 258(ptr) Variable UniformConstant
150 260: TypeImage 32(int) 2D sampled format:Unknown
151 261: TypeSampledImage 260
152 262: TypePointer UniformConstant 261
153 263(us2D): 262(ptr) Variable UniformConstant
154 264: TypeImage 32(int) 3D sampled format:Unknown
155 265: TypeSampledImage 264
156 266: TypePointer UniformConstant 265
157 267(us3D): 266(ptr) Variable UniformConstant
158 268: TypeImage 32(int) Cube sampled format:Unknown
159 269: TypeSampledImage 268
160 270: TypePointer UniformConstant 269
161 271(usCube): 270(ptr) Variable UniformConstant
162 272: TypeImage 32(int) 2D array sampled format:Unknown
163 273: TypeSampledImage 272
164 274: TypePointer UniformConstant 273
165 275(us2DArray): 274(ptr) Variable UniformConstant
166 276: TypePointer Input 162(ivec4)
167 277(ic4D): 276(ptr) Variable Input
168 4(main): 2 Function None 3
169 5: Label
170 9(v): 8(ptr) Variable Function
171 164(iv): 163(ptr) Variable Function
172 237(iv2): 236(ptr) Variable Function
173 14: 11 Load 13(s2D)
174 18: 15(fvec2) Load 17(c2D)
175 19: 7(fvec4) ImageSampleImplicitLod 14 18
176 Store 9(v) 19
177 24: 21 Load 23(sCubeArrayShadow)
178 27: 7(fvec4) Load 26(c4D)
179 30: 6(float) Load 29(c1D)
180 31: 6(float) ImageSampleDrefImplicitLod 24 27 30
181 35: 34(ptr) AccessChain 9(v) 33
182 36: 6(float) Load 35
183 37: 6(float) FAdd 36 31
184 38: 34(ptr) AccessChain 9(v) 33
185 Store 38 37
186 43: 40 Load 42(s3D)
187 44: 7(fvec4) Load 26(c4D)
188 45: 7(fvec4) ImageSampleProjImplicitLod 43 44
189 46: 7(fvec4) Load 9(v)
190 47: 7(fvec4) FAdd 46 45
191 Store 9(v) 47
192 52: 49 Load 51(s2DArray)
193 56: 53(fvec3) Load 55(c3D)
194 58: 7(fvec4) ImageSampleExplicitLod 52 56 Lod 57
195 59: 7(fvec4) Load 9(v)
196 60: 7(fvec4) FAdd 59 58
197 Store 9(v) 60
198 65: 62 Load 64(s2DShadow)
199 66: 53(fvec3) Load 55(c3D)
200 71: 6(float) Load 29(c1D)
201 72: 6(float) CompositeExtract 66 2
202 73: 6(float) ImageSampleDrefImplicitLod 65 66 72 Bias ConstOffset 71 70
203 74: 34(ptr) AccessChain 9(v) 33
204 75: 6(float) Load 74
205 76: 6(float) FAdd 75 73
206 77: 34(ptr) AccessChain 9(v) 33
207 Store 77 76
208 78: 40 Load 42(s3D)
209 82: 79(ivec3) Load 81(ic3D)
210 85: 67(int) Load 84(ic1D)
211 86: 7(fvec4) ImageFetch 78 82 Lod 85
212 87: 7(fvec4) Load 9(v)
213 88: 7(fvec4) FAdd 87 86
214 Store 9(v) 88
215 89: 11 Load 13(s2D)
216 92: 68(ivec2) Load 91(ic2D)
217 94: 7(fvec4) ImageFetch 89 92 Lod ConstOffset 93 70
218 95: 7(fvec4) Load 9(v)
219 96: 7(fvec4) FAdd 95 94
220 Store 9(v) 96
221 101: 98 Load 100(sr)
222 102: 68(ivec2) Load 91(ic2D)
223 104: 7(fvec4) ImageFetch 101 102 ConstOffset 103
224 105: 7(fvec4) Load 9(v)
225 106: 7(fvec4) FAdd 105 104
226 Store 9(v) 106
227 107: 62 Load 64(s2DShadow)
228 108: 53(fvec3) Load 55(c3D)
229 109: 6(float) Load 29(c1D)
230 110: 6(float) CompositeExtract 108 2
231 111: 6(float) ImageSampleDrefExplicitLod 107 108 110 Lod ConstOffset 109 70
232 112: 34(ptr) AccessChain 9(v) 33
233 113: 6(float) Load 112
234 114: 6(float) FAdd 113 111
235 115: 34(ptr) AccessChain 9(v) 33
236 Store 115 114
237 116: 11 Load 13(s2D)
238 117: 53(fvec3) Load 55(c3D)
239 118: 6(float) Load 29(c1D)
240 119: 7(fvec4) ImageSampleProjExplicitLod 116 117 Lod ConstOffset 118 70
241 120: 7(fvec4) Load 9(v)
242 121: 7(fvec4) FAdd 120 119
243 Store 9(v) 121
244 126: 123 Load 125(sCube)
245 127: 53(fvec3) Load 55(c3D)
246 128: 53(fvec3) Load 55(c3D)
247 129: 53(fvec3) Load 55(c3D)
248 130: 7(fvec4) ImageSampleExplicitLod 126 127 Grad 128 129
249 131: 7(fvec4) Load 9(v)
250 132: 7(fvec4) FAdd 131 130
251 Store 9(v) 132
252 137: 134 Load 136(s2DArrayShadow)
253 138: 7(fvec4) Load 26(c4D)
254 139: 15(fvec2) Load 17(c2D)
255 140: 15(fvec2) Load 17(c2D)
256 141: 6(float) CompositeExtract 138 3
257 142: 6(float) ImageSampleDrefExplicitLod 137 138 141 Grad ConstOffset 139 140 70
258 144: 34(ptr) AccessChain 9(v) 143
259 145: 6(float) Load 144
260 146: 6(float) FAdd 145 142
261 147: 34(ptr) AccessChain 9(v) 143
262 Store 147 146
263 148: 40 Load 42(s3D)
264 149: 7(fvec4) Load 26(c4D)
265 150: 53(fvec3) Load 55(c3D)
266 151: 53(fvec3) Load 55(c3D)
267 152: 7(fvec4) ImageSampleProjExplicitLod 148 149 Grad 150 151
268 153: 7(fvec4) Load 9(v)
269 154: 7(fvec4) FAdd 153 152
270 Store 9(v) 154
271 155: 11 Load 13(s2D)
272 156: 53(fvec3) Load 55(c3D)
273 157: 15(fvec2) Load 17(c2D)
274 158: 15(fvec2) Load 17(c2D)
275 159: 7(fvec4) ImageSampleProjExplicitLod 155 156 Grad ConstOffset 157 158 70
276 160: 7(fvec4) Load 9(v)
277 161: 7(fvec4) FAdd 160 159
278 Store 9(v) 161
279 169: 166 Load 168(is2D)
280 170: 15(fvec2) Load 17(c2D)
281 171: 162(ivec4) ImageSampleImplicitLod 169 170
282 Store 164(iv) 171
283 172: 162(ivec4) Load 164(iv)
284 173: 7(fvec4) ConvertSToF 172
285 174: 7(fvec4) Load 9(v)
286 175: 7(fvec4) FAdd 174 173
287 Store 9(v) 175
288 176: 166 Load 168(is2D)
289 177: 7(fvec4) Load 26(c4D)
290 178: 162(ivec4) ImageSampleProjImplicitLod 176 177 ConstOffset 70
291 Store 164(iv) 178
292 179: 162(ivec4) Load 164(iv)
293 180: 7(fvec4) ConvertSToF 179
294 181: 7(fvec4) Load 9(v)
295 182: 7(fvec4) FAdd 181 180
296 Store 9(v) 182
297 183: 166 Load 168(is2D)
298 184: 53(fvec3) Load 55(c3D)
299 185: 6(float) Load 29(c1D)
300 186: 162(ivec4) ImageSampleProjExplicitLod 183 184 Lod 185
301 Store 164(iv) 186
302 187: 162(ivec4) Load 164(iv)
303 188: 7(fvec4) ConvertSToF 187
304 189: 7(fvec4) Load 9(v)
305 190: 7(fvec4) FAdd 189 188
306 Store 9(v) 190
307 191: 166 Load 168(is2D)
308 192: 53(fvec3) Load 55(c3D)
309 193: 15(fvec2) Load 17(c2D)
310 194: 15(fvec2) Load 17(c2D)
311 195: 162(ivec4) ImageSampleProjExplicitLod 191 192 Grad 193 194
312 Store 164(iv) 195
313 196: 162(ivec4) Load 164(iv)
314 197: 7(fvec4) ConvertSToF 196
315 198: 7(fvec4) Load 9(v)
316 199: 7(fvec4) FAdd 198 197
317 Store 9(v) 199
318 204: 201 Load 203(is3D)
319 205: 53(fvec3) Load 55(c3D)
320 207: 162(ivec4) ImageSampleImplicitLod 204 205 Bias 206
321 Store 164(iv) 207
322 208: 162(ivec4) Load 164(iv)
323 209: 7(fvec4) ConvertSToF 208
324 210: 7(fvec4) Load 9(v)
325 211: 7(fvec4) FAdd 210 209
326 Store 9(v) 211
327 216: 213 Load 215(isCube)
328 217: 53(fvec3) Load 55(c3D)
329 218: 6(float) Load 29(c1D)
330 219: 162(ivec4) ImageSampleExplicitLod 216 217 Lod 218
331 Store 164(iv) 219
332 220: 162(ivec4) Load 164(iv)
333 221: 7(fvec4) ConvertSToF 220
334 222: 7(fvec4) Load 9(v)
335 223: 7(fvec4) FAdd 222 221
336 Store 9(v) 223
337 228: 225 Load 227(is2DArray)
338 229: 79(ivec3) Load 81(ic3D)
339 230: 67(int) Load 84(ic1D)
340 231: 162(ivec4) ImageFetch 228 229 Lod 230
341 Store 164(iv) 231
342 232: 162(ivec4) Load 164(iv)
343 233: 7(fvec4) ConvertSToF 232
344 234: 7(fvec4) Load 9(v)
345 235: 7(fvec4) FAdd 234 233
346 Store 9(v) 235
347 242: 239 Load 241(sCubeShadow)
348 244: 238 Image 242
349 245: 68(ivec2) ImageQuerySizeLod 244 243
350 Store 237(iv2) 245
351 248: 7(fvec4) Load 9(v)
352 249: 68(ivec2) Load 237(iv2)
353 250: 15(fvec2) ConvertSToF 249
354 252: 6(float) CompositeExtract 250 0
355 253: 6(float) CompositeExtract 250 1
356 254: 7(fvec4) CompositeConstruct 252 253 251 251
357 255: 7(fvec4) FAdd 248 254
358 Store 247(FragData) 255
359 Return
360 FunctionEnd