summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/baseResults/array.frag.out
blob: 8b3cf807a4856071d933208bc7081e601e77a8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
array.frag
ERROR: 0:21: '[' :  array index out of range '2'
ERROR: 0:27: '[' :  array must be redeclared with a size before being indexed with a variable
ERROR: 0:30: 'assign' :  cannot convert from 'global 4-element array of float' to 'global 5-element array of float'
ERROR: 0:31: 'assign' :  cannot convert from 'global 4-element array of float' to 'global implicitly-sized array of float'
ERROR: 0:33: 'foo' : no matching overloaded function found 
ERROR: 0:42: '[' :  array index out of range '5'
ERROR: 0:45: '[' :  array index out of range '1000'
ERROR: 0:46: '[' :  index out of range '-1'
ERROR: 0:52: '[' :  array index out of range '2'
ERROR: 0:54: 'const' : non-matching or non-convertible constant type for const initializer 
ERROR: 0:56: '=' :  cannot convert from 'const 2-element array of int' to 'temp 3-element array of int'
ERROR: 0:57: '[]' : scalar integer expression required 
ERROR: 0:57: '[' :  index out of range '-858993459'
ERROR: 0:58: '[]' : scalar integer expression required 
ERROR: 0:61: '' : array size required 
ERROR: 0:62: '' : array size required 
ERROR: 0:63: '' : array size required 
ERROR: 0:66: '=' :  cannot convert from 'temp 3-component vector of float' to 'global float'
ERROR: 0:76: 'bar' : no matching overloaded function found 
ERROR: 0:79: '' : array size required 
ERROR: 0:84: 'return' : type does not match, or is not convertible to, the function's return type 
ERROR: 0:93: 'length' :  array must be declared with a size before using this method
ERROR: 0:101: '[' :  array index out of range '5'
ERROR: 0:104: 'constructor' : array constructor must have at least one argument 
ERROR: 0:104: '=' :  cannot convert from 'const float' to 'global implicitly-sized array of int'
ERROR: 0:106: 'constructor' : array argument must be sized 
ERROR: 26 compilation errors.  No code generated.


Shader version: 130
ERROR: node is still EOpNull!
0:9  Function Definition: foo(f1[5]; (global 4-element array of float)
0:9    Function Parameters: 
0:9      'a' (in 5-element array of float)
0:11    Sequence
0:11      Branch: Return with expression
0:11        Construct float (temp 4-element array of float)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              0 (const int)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              1 (const int)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              2 (const int)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              3 (const int)
0:14  Function Definition: bar(f1[5]; (global void)
0:14    Function Parameters: 
0:14      '' (in 5-element array of float)
0:16  Function Definition: main( (global void)
0:16    Function Parameters: 
0:?     Sequence
0:?       Sequence
0:21        move second child to first child (temp float)
0:21          direct index (temp float)
0:21            'gu' (temp 2-element array of float)
0:21            Constant:
0:21              2 (const int)
0:21          Constant:
0:21            4.000000
0:24      move second child to first child (temp float)
0:24        direct index (temp float)
0:24          'gu' (global implicitly-sized array of float)
0:24          Constant:
0:24            2 (const int)
0:24        Constant:
0:24          4.000000
0:26      move second child to first child (temp float)
0:26        direct index (temp float)
0:26          'gu' (global implicitly-sized array of float)
0:26          Constant:
0:26            3 (const int)
0:26        Constant:
0:26          3.000000
0:27      move second child to first child (temp float)
0:27        indirect index (temp float)
0:27          'gu' (global implicitly-sized array of float)
0:27          'a' (uniform int)
0:27        Constant:
0:27          5.000000
0:29      move second child to first child (temp 4-element array of float)
0:29        'g4' (global 4-element array of float)
0:29        Function Call: foo(f1[5]; (global 4-element array of float)
0:29          'g5' (global 5-element array of float)
0:30      'g5' (global 5-element array of float)
0:31      'gu' (global implicitly-sized array of float)
0:33      Constant:
0:33        0.000000
0:34      Function Call: bar(f1[5]; (global void)
0:34        'g5' (global 5-element array of float)
0:36      Test condition and select (temp void)
0:36        Condition
0:36        Compare Equal (temp bool)
0:36          Constant:
0:36            1.000000
0:36            2.000000
0:36            3.000000
0:36            4.000000
0:36          'g4' (global 4-element array of float)
0:36        true case
0:37        move second child to first child (temp float)
0:37          direct index (temp float)
0:37            'gu' (global implicitly-sized array of float)
0:37            Constant:
0:37              0 (const int)
0:37          Constant:
0:37            2.000000
0:40      move second child to first child (temp float)
0:40        direct index (temp float)
0:40          'u' (temp 5-element array of float)
0:40          Constant:
0:40            2 (const int)
0:40        Constant:
0:40          3.000000
0:42      move second child to first child (temp float)
0:42        direct index (temp float)
0:42          'u' (temp 5-element array of float)
0:42          Constant:
0:42            5 (const int)
0:42        Constant:
0:42          5.000000
0:43      Function Call: foo(f1[5]; (global 4-element array of float)
0:43        'u' (temp 5-element array of float)
0:45      move second child to first child (temp 4-component vector of float)
0:45        direct index (temp 4-component vector of float FragData)
0:45          'gl_FragData' (fragColor 32-element array of 4-component vector of float FragData)
0:45          Constant:
0:45            1000 (const int)
0:45        Constant:
0:45          1.000000
0:45          1.000000
0:45          1.000000
0:45          1.000000
0:46      move second child to first child (temp 4-component vector of float)
0:46        direct index (temp 4-component vector of float FragData)
0:46          'gl_FragData' (fragColor 32-element array of 4-component vector of float FragData)
0:46          Constant:
0:46            -1 (const int)
0:46        Constant:
0:46          1.000000
0:46          1.000000
0:46          1.000000
0:46          1.000000
0:47      move second child to first child (temp 4-component vector of float)
0:47        direct index (temp 4-component vector of float FragData)
0:47          'gl_FragData' (fragColor 32-element array of 4-component vector of float FragData)
0:47          Constant:
0:47            3 (const int)
0:47        Constant:
0:47          1.000000
0:47          1.000000
0:47          1.000000
0:47          1.000000
0:50      Sequence
0:50        move second child to first child (temp int)
0:50          'sum' (temp int)
0:50          Constant:
0:50            3 (const int)
0:51      add second child into first child (temp int)
0:51        'sum' (temp int)
0:51        Constant:
0:51          2 (const int)
0:52      add second child into first child (temp int)
0:52        'sum' (temp int)
0:52        Constant:
0:52          2 (const int)
0:55      Sequence
0:55        move second child to first child (temp 2-element array of int)
0:55          'ica' (temp 2-element array of int)
0:55          Constant:
0:55            3 (const int)
0:55            2 (const int)
0:57      move second child to first child (temp int)
0:57        direct index (temp int)
0:57          'ica' (temp 2-element array of int)
0:57          Constant:
0:57            3.100000
0:57        Constant:
0:57          3 (const int)
0:58      move second child to first child (temp int)
0:58        indirect index (temp int)
0:58          'ica' (temp 2-element array of int)
0:58          direct index (temp float)
0:58            'u' (temp 5-element array of float)
0:58            Constant:
0:58              1 (const int)
0:58        Constant:
0:58          4 (const int)
0:68  Function Definition: foo( (global void)
0:68    Function Parameters: 
0:?     Sequence
0:71      move second child to first child (temp int)
0:71        direct index (temp int)
0:71          'uns' (temp implicitly-sized array of int)
0:71          Constant:
0:71            3 (const int)
0:71        Constant:
0:71          40 (const int)
0:72      move second child to first child (temp int)
0:72        direct index (temp int)
0:72          'uns' (temp implicitly-sized array of int)
0:72          Constant:
0:72            1 (const int)
0:72        Constant:
0:72          30 (const int)
0:73      move second child to first child (temp 3-component vector of float)
0:73        direct index (temp 3-component vector of float)
0:73          'guns' (global implicitly-sized array of 3-component vector of float)
0:73          Constant:
0:73            2 (const int)
0:73        Constant:
0:73          2.400000
0:73          2.400000
0:73          2.400000
0:76      Constant:
0:76        0.000000
0:79  Function Definition: foo2( (global implicitly-sized array of float)
0:79    Function Parameters: 
0:?     Sequence
0:82      Branch: Return with expression
0:82        'f' (temp implicitly-sized array of float)
0:84      Branch: Return with expression
0:84        'g' (temp 9-element array of float)
0:89  Function Definition: foo3( (global void)
0:89    Function Parameters: 
0:?     Sequence
0:92      move second child to first child (temp float)
0:92        direct index (temp float)
0:92          'resize1' (temp 3-element array of float)
0:92          Constant:
0:92            2 (const int)
0:92        Constant:
0:92          4.000000
0:93      Constant:
0:93        1 (const int)
0:95      Constant:
0:95        3 (const int)
0:98      move second child to first child (temp float)
0:98        direct index (temp float)
0:98          'resize2' (temp 5-element array of float)
0:98          Constant:
0:98            5 (const int)
0:98        Constant:
0:98          4.000000
0:100      Constant:
0:100        5 (const int)
0:101      move second child to first child (temp float)
0:101        direct index (temp float)
0:101          'resize2' (temp 5-element array of float)
0:101          Constant:
0:101            5 (const int)
0:101        Constant:
0:101          4.000000
0:106  Sequence
0:106    move second child to first child (temp float)
0:106      'b' (global float)
0:106      Constant:
0:106        0.000000
0:?   Linker Objects
0:?     'gu' (global implicitly-sized array of float)
0:?     'g4' (global 4-element array of float)
0:?     'g5' (global 5-element array of float)
0:?     'a' (uniform int)
0:?     'guns' (global implicitly-sized array of 3-component vector of float)
0:?     'f' (global float)
0:?     'gUnusedUnsized' (global implicitly-sized array of float)
0:?     'i' (global implicitly-sized array of int)
0:?     'emptyA' (global implicitly-sized array of float)
0:?     'b' (global float)


Linked fragment stage:


Shader version: 130
ERROR: node is still EOpNull!
0:9  Function Definition: foo(f1[5]; (global 4-element array of float)
0:9    Function Parameters: 
0:9      'a' (in 5-element array of float)
0:11    Sequence
0:11      Branch: Return with expression
0:11        Construct float (temp 4-element array of float)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              0 (const int)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              1 (const int)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              2 (const int)
0:11          direct index (temp float)
0:11            'a' (in 5-element array of float)
0:11            Constant:
0:11              3 (const int)
0:14  Function Definition: bar(f1[5]; (global void)
0:14    Function Parameters: 
0:14      '' (in 5-element array of float)
0:16  Function Definition: main( (global void)
0:16    Function Parameters: 
0:?     Sequence
0:?       Sequence
0:21        move second child to first child (temp float)
0:21          direct index (temp float)
0:21            'gu' (temp 2-element array of float)
0:21            Constant:
0:21              2 (const int)
0:21          Constant:
0:21            4.000000
0:24      move second child to first child (temp float)
0:24        direct index (temp float)
0:24          'gu' (global 4-element array of float)
0:24          Constant:
0:24            2 (const int)
0:24        Constant:
0:24          4.000000
0:26      move second child to first child (temp float)
0:26        direct index (temp float)
0:26          'gu' (global 4-element array of float)
0:26          Constant:
0:26            3 (const int)
0:26        Constant:
0:26          3.000000
0:27      move second child to first child (temp float)
0:27        indirect index (temp float)
0:27          'gu' (global 4-element array of float)
0:27          'a' (uniform int)
0:27        Constant:
0:27          5.000000
0:29      move second child to first child (temp 4-element array of float)
0:29        'g4' (global 4-element array of float)
0:29        Function Call: foo(f1[5]; (global 4-element array of float)
0:29          'g5' (global 5-element array of float)
0:30      'g5' (global 5-element array of float)
0:31      'gu' (global 4-element array of float)
0:33      Constant:
0:33        0.000000
0:34      Function Call: bar(f1[5]; (global void)
0:34        'g5' (global 5-element array of float)
0:36      Test condition and select (temp void)
0:36        Condition
0:36        Compare Equal (temp bool)
0:36          Constant:
0:36            1.000000
0:36            2.000000
0:36            3.000000
0:36            4.000000
0:36          'g4' (global 4-element array of float)
0:36        true case
0:37        move second child to first child (temp float)
0:37          direct index (temp float)
0:37            'gu' (global 4-element array of float)
0:37            Constant:
0:37              0 (const int)
0:37          Constant:
0:37            2.000000
0:40      move second child to first child (temp float)
0:40        direct index (temp float)
0:40          'u' (temp 5-element array of float)
0:40          Constant:
0:40            2 (const int)
0:40        Constant:
0:40          3.000000
0:42      move second child to first child (temp float)
0:42        direct index (temp float)
0:42          'u' (temp 5-element array of float)
0:42          Constant:
0:42            5 (const int)
0:42        Constant:
0:42          5.000000
0:43      Function Call: foo(f1[5]; (global 4-element array of float)
0:43        'u' (temp 5-element array of float)
0:45      move second child to first child (temp 4-component vector of float)
0:45        direct index (temp 4-component vector of float FragData)
0:45          'gl_FragData' (fragColor 32-element array of 4-component vector of float FragData)
0:45          Constant:
0:45            1000 (const int)
0:45        Constant:
0:45          1.000000
0:45          1.000000
0:45          1.000000
0:45          1.000000
0:46      move second child to first child (temp 4-component vector of float)
0:46        direct index (temp 4-component vector of float FragData)
0:46          'gl_FragData' (fragColor 32-element array of 4-component vector of float FragData)
0:46          Constant:
0:46            -1 (const int)
0:46        Constant:
0:46          1.000000
0:46          1.000000
0:46          1.000000
0:46          1.000000
0:47      move second child to first child (temp 4-component vector of float)
0:47        direct index (temp 4-component vector of float FragData)
0:47          'gl_FragData' (fragColor 32-element array of 4-component vector of float FragData)
0:47          Constant:
0:47            3 (const int)
0:47        Constant:
0:47          1.000000
0:47          1.000000
0:47          1.000000
0:47          1.000000
0:50      Sequence
0:50        move second child to first child (temp int)
0:50          'sum' (temp int)
0:50          Constant:
0:50            3 (const int)
0:51      add second child into first child (temp int)
0:51        'sum' (temp int)
0:51        Constant:
0:51          2 (const int)
0:52      add second child into first child (temp int)
0:52        'sum' (temp int)
0:52        Constant:
0:52          2 (const int)
0:55      Sequence
0:55        move second child to first child (temp 2-element array of int)
0:55          'ica' (temp 2-element array of int)
0:55          Constant:
0:55            3 (const int)
0:55            2 (const int)
0:57      move second child to first child (temp int)
0:57        direct index (temp int)
0:57          'ica' (temp 2-element array of int)
0:57          Constant:
0:57            3.100000
0:57        Constant:
0:57          3 (const int)
0:58      move second child to first child (temp int)
0:58        indirect index (temp int)
0:58          'ica' (temp 2-element array of int)
0:58          direct index (temp float)
0:58            'u' (temp 5-element array of float)
0:58            Constant:
0:58              1 (const int)
0:58        Constant:
0:58          4 (const int)
0:68  Function Definition: foo( (global void)
0:68    Function Parameters: 
0:?     Sequence
0:71      move second child to first child (temp int)
0:71        direct index (temp int)
0:71          'uns' (temp 4-element array of int)
0:71          Constant:
0:71            3 (const int)
0:71        Constant:
0:71          40 (const int)
0:72      move second child to first child (temp int)
0:72        direct index (temp int)
0:72          'uns' (temp 4-element array of int)
0:72          Constant:
0:72            1 (const int)
0:72        Constant:
0:72          30 (const int)
0:73      move second child to first child (temp 3-component vector of float)
0:73        direct index (temp 3-component vector of float)
0:73          'guns' (global 8-element array of 3-component vector of float)
0:73          Constant:
0:73            2 (const int)
0:73        Constant:
0:73          2.400000
0:73          2.400000
0:73          2.400000
0:76      Constant:
0:76        0.000000
0:79  Function Definition: foo2( (global implicitly-sized array of float)
0:79    Function Parameters: 
0:?     Sequence
0:82      Branch: Return with expression
0:82        'f' (temp 1-element array of float)
0:84      Branch: Return with expression
0:84        'g' (temp 9-element array of float)
0:89  Function Definition: foo3( (global void)
0:89    Function Parameters: 
0:?     Sequence
0:92      move second child to first child (temp float)
0:92        direct index (temp float)
0:92          'resize1' (temp 3-element array of float)
0:92          Constant:
0:92            2 (const int)
0:92        Constant:
0:92          4.000000
0:93      Constant:
0:93        1 (const int)
0:95      Constant:
0:95        3 (const int)
0:98      move second child to first child (temp float)
0:98        direct index (temp float)
0:98          'resize2' (temp 5-element array of float)
0:98          Constant:
0:98            5 (const int)
0:98        Constant:
0:98          4.000000
0:100      Constant:
0:100        5 (const int)
0:101      move second child to first child (temp float)
0:101        direct index (temp float)
0:101          'resize2' (temp 5-element array of float)
0:101          Constant:
0:101            5 (const int)
0:101        Constant:
0:101          4.000000
0:106  Sequence
0:106    move second child to first child (temp float)
0:106      'b' (global float)
0:106      Constant:
0:106        0.000000
0:?   Linker Objects
0:?     'gu' (global 4-element array of float)
0:?     'g4' (global 4-element array of float)
0:?     'g5' (global 5-element array of float)
0:?     'a' (uniform int)
0:?     'guns' (global 8-element array of 3-component vector of float)
0:?     'f' (global float)
0:?     'gUnusedUnsized' (global 1-element array of float)
0:?     'i' (global 1-element array of int)
0:?     'emptyA' (global 1-element array of float)
0:?     'b' (global float)