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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
|
hlsl.getsampleposition.dx10.frag
Shader version: 500
gl_FragCoord origin is upper left
using depth_any
0:? Sequence
0:13 Function Definition: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Function Parameters:
0:13 'sample' ( in int)
0:? Sequence
0:16 Sequence
0:16 move second child to first child ( temp 2-component vector of float)
0:16 'r00' ( temp 2-component vector of float)
0:16 Sequence
0:16 move second child to first child ( temp uint)
0:16 '@sampleCount' ( temp uint)
0:16 imageQuerySamples ( temp uint)
0:16 'g_tTex2dmsf4' ( uniform texture2DMS)
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 2 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.250000
0:? 0.250000
0:? -0.250000
0:? -0.250000
0:16 'sample' ( in int)
0:16 false case
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 4 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? -0.125000
0:? -0.375000
0:? 0.375000
0:? -0.125000
0:? -0.375000
0:? 0.125000
0:? 0.125000
0:? 0.375000
0:16 'sample' ( in int)
0:16 false case
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 8 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? -0.187500
0:? -0.062500
0:? 0.187500
0:? 0.312500
0:? 0.062500
0:? -0.187500
0:? -0.312500
0:? -0.312500
0:? 0.312500
0:? -0.437500
0:? -0.062500
0:? 0.187500
0:? 0.437500
0:? 0.437500
0:? -0.437500
0:16 'sample' ( in int)
0:16 false case
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 16 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? 0.062500
0:? -0.062500
0:? -0.187500
0:? -0.187500
0:? 0.125000
0:? 0.250000
0:? -0.062500
0:? -0.312500
0:? -0.125000
0:? 0.125000
0:? 0.312500
0:? 0.312500
0:? 0.187500
0:? 0.187500
0:? -0.312500
0:? -0.125000
0:? 0.375000
0:? 0.000000
0:? -0.437500
0:? -0.250000
0:? -0.375000
0:? -0.375000
0:? 0.250000
0:? -0.500000
0:? 0.000000
0:? 0.437500
0:? -0.250000
0:? 0.375000
0:? 0.437500
0:? -0.437500
0:? -0.500000
0:16 'sample' ( in int)
0:16 false case
0:? Constant:
0:? 0.000000
0:? 0.000000
0:17 Sequence
0:17 move second child to first child ( temp 2-component vector of float)
0:17 'r01' ( temp 2-component vector of float)
0:17 Sequence
0:17 move second child to first child ( temp uint)
0:17 '@sampleCount' ( temp uint)
0:17 imageQuerySamples ( temp uint)
0:17 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 2 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.250000
0:? 0.250000
0:? -0.250000
0:? -0.250000
0:17 'sample' ( in int)
0:17 false case
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 4 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? -0.125000
0:? -0.375000
0:? 0.375000
0:? -0.125000
0:? -0.375000
0:? 0.125000
0:? 0.125000
0:? 0.375000
0:17 'sample' ( in int)
0:17 false case
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 8 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? -0.187500
0:? -0.062500
0:? 0.187500
0:? 0.312500
0:? 0.062500
0:? -0.187500
0:? -0.312500
0:? -0.312500
0:? 0.312500
0:? -0.437500
0:? -0.062500
0:? 0.187500
0:? 0.437500
0:? 0.437500
0:? -0.437500
0:17 'sample' ( in int)
0:17 false case
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 16 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? 0.062500
0:? -0.062500
0:? -0.187500
0:? -0.187500
0:? 0.125000
0:? 0.250000
0:? -0.062500
0:? -0.312500
0:? -0.125000
0:? 0.125000
0:? 0.312500
0:? 0.312500
0:? 0.187500
0:? 0.187500
0:? -0.312500
0:? -0.125000
0:? 0.375000
0:? 0.000000
0:? -0.437500
0:? -0.250000
0:? -0.375000
0:? -0.375000
0:? 0.250000
0:? -0.500000
0:? 0.000000
0:? 0.437500
0:? -0.250000
0:? 0.375000
0:? 0.437500
0:? -0.437500
0:? -0.500000
0:17 'sample' ( in int)
0:17 false case
0:? Constant:
0:? 0.000000
0:? 0.000000
0:19 move second child to first child ( temp 4-component vector of float)
0:19 Color: direct index for structure ( temp 4-component vector of float)
0:19 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:19 Constant:
0:19 0 (const int)
0:19 Constant:
0:19 1.000000
0:19 1.000000
0:19 1.000000
0:19 1.000000
0:20 move second child to first child ( temp float)
0:20 Depth: direct index for structure ( temp float)
0:20 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:20 Constant:
0:20 1 (const int)
0:20 Constant:
0:20 1.000000
0:22 Branch: Return with expression
0:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Function Definition: main( ( temp void)
0:13 Function Parameters:
0:? Sequence
0:13 move second child to first child ( temp int)
0:? 'sample' ( temp int)
0:? 'sample' (layout( location=0) flat in int)
0:13 Sequence
0:13 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Function Call: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:? 'sample' ( temp int)
0:13 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
0:13 Color: direct index for structure ( temp 4-component vector of float)
0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Constant:
0:13 0 (const int)
0:13 move second child to first child ( temp float)
0:? '@entryPointOutput.Depth' ( out float FragDepth)
0:13 Depth: direct index for structure ( temp float)
0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Constant:
0:13 1 (const int)
0:? Linker Objects
0:? 'g_sSamp' (layout( binding=0) uniform sampler)
0:? 'g_tTex2dmsf4' ( uniform texture2DMS)
0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
0:? '@entryPointOutput.Depth' ( out float FragDepth)
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
0:? 'sample' (layout( location=0) flat in int)
Linked fragment stage:
Shader version: 500
gl_FragCoord origin is upper left
using depth_any
0:? Sequence
0:13 Function Definition: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Function Parameters:
0:13 'sample' ( in int)
0:? Sequence
0:16 Sequence
0:16 move second child to first child ( temp 2-component vector of float)
0:16 'r00' ( temp 2-component vector of float)
0:16 Sequence
0:16 move second child to first child ( temp uint)
0:16 '@sampleCount' ( temp uint)
0:16 imageQuerySamples ( temp uint)
0:16 'g_tTex2dmsf4' ( uniform texture2DMS)
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 2 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.250000
0:? 0.250000
0:? -0.250000
0:? -0.250000
0:16 'sample' ( in int)
0:16 false case
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 4 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? -0.125000
0:? -0.375000
0:? 0.375000
0:? -0.125000
0:? -0.375000
0:? 0.125000
0:? 0.125000
0:? 0.375000
0:16 'sample' ( in int)
0:16 false case
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 8 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? -0.187500
0:? -0.062500
0:? 0.187500
0:? 0.312500
0:? 0.062500
0:? -0.187500
0:? -0.312500
0:? -0.312500
0:? 0.312500
0:? -0.437500
0:? -0.062500
0:? 0.187500
0:? 0.437500
0:? 0.437500
0:? -0.437500
0:16 'sample' ( in int)
0:16 false case
0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:16 Condition
0:16 Compare Equal ( temp bool)
0:16 '@sampleCount' ( temp uint)
0:16 Constant:
0:16 16 (const int)
0:16 true case
0:16 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? 0.062500
0:? -0.062500
0:? -0.187500
0:? -0.187500
0:? 0.125000
0:? 0.250000
0:? -0.062500
0:? -0.312500
0:? -0.125000
0:? 0.125000
0:? 0.312500
0:? 0.312500
0:? 0.187500
0:? 0.187500
0:? -0.312500
0:? -0.125000
0:? 0.375000
0:? 0.000000
0:? -0.437500
0:? -0.250000
0:? -0.375000
0:? -0.375000
0:? 0.250000
0:? -0.500000
0:? 0.000000
0:? 0.437500
0:? -0.250000
0:? 0.375000
0:? 0.437500
0:? -0.437500
0:? -0.500000
0:16 'sample' ( in int)
0:16 false case
0:? Constant:
0:? 0.000000
0:? 0.000000
0:17 Sequence
0:17 move second child to first child ( temp 2-component vector of float)
0:17 'r01' ( temp 2-component vector of float)
0:17 Sequence
0:17 move second child to first child ( temp uint)
0:17 '@sampleCount' ( temp uint)
0:17 imageQuerySamples ( temp uint)
0:17 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 2 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.250000
0:? 0.250000
0:? -0.250000
0:? -0.250000
0:17 'sample' ( in int)
0:17 false case
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 4 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? -0.125000
0:? -0.375000
0:? 0.375000
0:? -0.125000
0:? -0.375000
0:? 0.125000
0:? 0.125000
0:? 0.375000
0:17 'sample' ( in int)
0:17 false case
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 8 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? -0.187500
0:? -0.062500
0:? 0.187500
0:? 0.312500
0:? 0.062500
0:? -0.187500
0:? -0.312500
0:? -0.312500
0:? 0.312500
0:? -0.437500
0:? -0.062500
0:? 0.187500
0:? 0.437500
0:? 0.437500
0:? -0.437500
0:17 'sample' ( in int)
0:17 false case
0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
0:17 Condition
0:17 Compare Equal ( temp bool)
0:17 '@sampleCount' ( temp uint)
0:17 Constant:
0:17 16 (const int)
0:17 true case
0:17 indirect index ( temp 2-component vector of float)
0:? Constant:
0:? 0.062500
0:? 0.062500
0:? -0.062500
0:? -0.187500
0:? -0.187500
0:? 0.125000
0:? 0.250000
0:? -0.062500
0:? -0.312500
0:? -0.125000
0:? 0.125000
0:? 0.312500
0:? 0.312500
0:? 0.187500
0:? 0.187500
0:? -0.312500
0:? -0.125000
0:? 0.375000
0:? 0.000000
0:? -0.437500
0:? -0.250000
0:? -0.375000
0:? -0.375000
0:? 0.250000
0:? -0.500000
0:? 0.000000
0:? 0.437500
0:? -0.250000
0:? 0.375000
0:? 0.437500
0:? -0.437500
0:? -0.500000
0:17 'sample' ( in int)
0:17 false case
0:? Constant:
0:? 0.000000
0:? 0.000000
0:19 move second child to first child ( temp 4-component vector of float)
0:19 Color: direct index for structure ( temp 4-component vector of float)
0:19 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:19 Constant:
0:19 0 (const int)
0:19 Constant:
0:19 1.000000
0:19 1.000000
0:19 1.000000
0:19 1.000000
0:20 move second child to first child ( temp float)
0:20 Depth: direct index for structure ( temp float)
0:20 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:20 Constant:
0:20 1 (const int)
0:20 Constant:
0:20 1.000000
0:22 Branch: Return with expression
0:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Function Definition: main( ( temp void)
0:13 Function Parameters:
0:? Sequence
0:13 move second child to first child ( temp int)
0:? 'sample' ( temp int)
0:? 'sample' (layout( location=0) flat in int)
0:13 Sequence
0:13 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Function Call: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:? 'sample' ( temp int)
0:13 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
0:13 Color: direct index for structure ( temp 4-component vector of float)
0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Constant:
0:13 0 (const int)
0:13 move second child to first child ( temp float)
0:? '@entryPointOutput.Depth' ( out float FragDepth)
0:13 Depth: direct index for structure ( temp float)
0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:13 Constant:
0:13 1 (const int)
0:? Linker Objects
0:? 'g_sSamp' (layout( binding=0) uniform sampler)
0:? 'g_tTex2dmsf4' ( uniform texture2DMS)
0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
0:? '@entryPointOutput.Depth' ( out float FragDepth)
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
0:? 'sample' (layout( location=0) flat in int)
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 198
Capability Shader
Capability ImageQuery
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 181 188 192
ExecutionMode 4 OriginUpperLeft
ExecutionMode 4 DepthReplacing
Source HLSL 500
Name 4 "main"
Name 10 "PS_OUTPUT"
MemberName 10(PS_OUTPUT) 0 "Color"
MemberName 10(PS_OUTPUT) 1 "Depth"
Name 13 "@main(i1;"
Name 12 "sample"
Name 17 "r00"
Name 20 "@sampleCount"
Name 23 "g_tTex2dmsf4"
Name 39 "indexable"
Name 58 "indexable"
Name 85 "indexable"
Name 114 "indexable"
Name 127 "r01"
Name 128 "@sampleCount"
Name 131 "g_tTex2dmsf4a"
Name 137 "indexable"
Name 143 "indexable"
Name 149 "indexable"
Name 155 "indexable"
Name 167 "psout"
Name 179 "sample"
Name 181 "sample"
Name 183 "flattenTemp"
Name 184 "param"
Name 188 "@entryPointOutput.Color"
Name 192 "@entryPointOutput.Depth"
Name 197 "g_sSamp"
Decorate 23(g_tTex2dmsf4) DescriptorSet 0
Decorate 23(g_tTex2dmsf4) Binding 1
Decorate 131(g_tTex2dmsf4a) DescriptorSet 0
Decorate 131(g_tTex2dmsf4a) Binding 2
Decorate 181(sample) Flat
Decorate 181(sample) Location 0
Decorate 188(@entryPointOutput.Color) Location 0
Decorate 192(@entryPointOutput.Depth) BuiltIn FragDepth
Decorate 197(g_sSamp) DescriptorSet 0
Decorate 197(g_sSamp) Binding 0
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
7: TypePointer Function 6(int)
8: TypeFloat 32
9: TypeVector 8(float) 4
10(PS_OUTPUT): TypeStruct 9(fvec4) 8(float)
11: TypeFunction 10(PS_OUTPUT) 7(ptr)
15: TypeVector 8(float) 2
16: TypePointer Function 15(fvec2)
18: TypeInt 32 0
19: TypePointer Function 18(int)
21: TypeImage 8(float) 2D multi-sampled sampled format:Unknown
22: TypePointer UniformConstant 21
23(g_tTex2dmsf4): 22(ptr) Variable UniformConstant
27: 6(int) Constant 2
28: TypeBool
30: 18(int) Constant 2
31: TypeArray 15(fvec2) 30
32: 8(float) Constant 1048576000
33: 15(fvec2) ConstantComposite 32 32
34: 8(float) Constant 3196059648
35: 15(fvec2) ConstantComposite 34 34
36: 31 ConstantComposite 33 35
38: TypePointer Function 31
43: 6(int) Constant 4
45: 18(int) Constant 4
46: TypeArray 15(fvec2) 45
47: 8(float) Constant 3187671040
48: 8(float) Constant 3200253952
49: 15(fvec2) ConstantComposite 47 48
50: 8(float) Constant 1052770304
51: 15(fvec2) ConstantComposite 50 47
52: 8(float) Constant 1040187392
53: 15(fvec2) ConstantComposite 48 52
54: 15(fvec2) ConstantComposite 52 50
55: 46 ConstantComposite 49 51 53 54
57: TypePointer Function 46
62: 6(int) Constant 8
64: 18(int) Constant 8
65: TypeArray 15(fvec2) 64
66: 8(float) Constant 1031798784
67: 8(float) Constant 3191865344
68: 15(fvec2) ConstantComposite 66 67
69: 8(float) Constant 3179282432
70: 8(float) Constant 1044381696
71: 15(fvec2) ConstantComposite 69 70
72: 8(float) Constant 1050673152
73: 15(fvec2) ConstantComposite 72 66
74: 8(float) Constant 3198156800
75: 15(fvec2) ConstantComposite 67 74
76: 15(fvec2) ConstantComposite 74 72
77: 8(float) Constant 3202351104
78: 15(fvec2) ConstantComposite 77 69
79: 8(float) Constant 1054867456
80: 15(fvec2) ConstantComposite 70 79
81: 15(fvec2) ConstantComposite 79 77
82: 65 ConstantComposite 68 71 73 75 76 78 80 81
84: TypePointer Function 65
89: 6(int) Constant 16
91: 18(int) Constant 16
92: TypeArray 15(fvec2) 91
93: 15(fvec2) ConstantComposite 66 66
94: 15(fvec2) ConstantComposite 69 67
95: 15(fvec2) ConstantComposite 67 52
96: 15(fvec2) ConstantComposite 32 69
97: 15(fvec2) ConstantComposite 74 47
98: 15(fvec2) ConstantComposite 52 72
99: 15(fvec2) ConstantComposite 72 70
100: 15(fvec2) ConstantComposite 70 74
101: 15(fvec2) ConstantComposite 47 50
102: 8(float) Constant 0
103: 15(fvec2) ConstantComposite 102 77
104: 15(fvec2) ConstantComposite 34 48
105: 15(fvec2) ConstantComposite 48 32
106: 8(float) Constant 3204448256
107: 15(fvec2) ConstantComposite 106 102
108: 15(fvec2) ConstantComposite 79 34
109: 15(fvec2) ConstantComposite 50 79
110: 15(fvec2) ConstantComposite 77 106
111: 92 ConstantComposite 93 94 95 96 97 98 99 100 101 103 104 105 107 108 109 110
113: TypePointer Function 92
117: 15(fvec2) ConstantComposite 102 102
118: TypeVector 28(bool) 2
129: TypeImage 8(float) 2D array multi-sampled sampled format:Unknown
130: TypePointer UniformConstant 129
131(g_tTex2dmsf4a): 130(ptr) Variable UniformConstant
166: TypePointer Function 10(PS_OUTPUT)
168: 6(int) Constant 0
169: 8(float) Constant 1065353216
170: 9(fvec4) ConstantComposite 169 169 169 169
171: TypePointer Function 9(fvec4)
173: 6(int) Constant 1
174: TypePointer Function 8(float)
180: TypePointer Input 6(int)
181(sample): 180(ptr) Variable Input
187: TypePointer Output 9(fvec4)
188(@entryPointOutput.Color): 187(ptr) Variable Output
191: TypePointer Output 8(float)
192(@entryPointOutput.Depth): 191(ptr) Variable Output
195: TypeSampler
196: TypePointer UniformConstant 195
197(g_sSamp): 196(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
179(sample): 7(ptr) Variable Function
183(flattenTemp): 166(ptr) Variable Function
184(param): 7(ptr) Variable Function
182: 6(int) Load 181(sample)
Store 179(sample) 182
185: 6(int) Load 179(sample)
Store 184(param) 185
186:10(PS_OUTPUT) FunctionCall 13(@main(i1;) 184(param)
Store 183(flattenTemp) 186
189: 171(ptr) AccessChain 183(flattenTemp) 168
190: 9(fvec4) Load 189
Store 188(@entryPointOutput.Color) 190
193: 174(ptr) AccessChain 183(flattenTemp) 173
194: 8(float) Load 193
Store 192(@entryPointOutput.Depth) 194
Return
FunctionEnd
13(@main(i1;):10(PS_OUTPUT) Function None 11
12(sample): 7(ptr) FunctionParameter
14: Label
17(r00): 16(ptr) Variable Function
20(@sampleCount): 19(ptr) Variable Function
39(indexable): 38(ptr) Variable Function
58(indexable): 57(ptr) Variable Function
85(indexable): 84(ptr) Variable Function
114(indexable): 113(ptr) Variable Function
127(r01): 16(ptr) Variable Function
128(@sampleCount): 19(ptr) Variable Function
137(indexable): 38(ptr) Variable Function
143(indexable): 57(ptr) Variable Function
149(indexable): 84(ptr) Variable Function
155(indexable): 113(ptr) Variable Function
167(psout): 166(ptr) Variable Function
24: 21 Load 23(g_tTex2dmsf4)
25: 18(int) ImageQuerySamples 24
Store 20(@sampleCount) 25
26: 18(int) Load 20(@sampleCount)
29: 28(bool) IEqual 26 27
37: 6(int) Load 12(sample)
Store 39(indexable) 36
40: 16(ptr) AccessChain 39(indexable) 37
41: 15(fvec2) Load 40
42: 18(int) Load 20(@sampleCount)
44: 28(bool) IEqual 42 43
56: 6(int) Load 12(sample)
Store 58(indexable) 55
59: 16(ptr) AccessChain 58(indexable) 56
60: 15(fvec2) Load 59
61: 18(int) Load 20(@sampleCount)
63: 28(bool) IEqual 61 62
83: 6(int) Load 12(sample)
Store 85(indexable) 82
86: 16(ptr) AccessChain 85(indexable) 83
87: 15(fvec2) Load 86
88: 18(int) Load 20(@sampleCount)
90: 28(bool) IEqual 88 89
112: 6(int) Load 12(sample)
Store 114(indexable) 111
115: 16(ptr) AccessChain 114(indexable) 112
116: 15(fvec2) Load 115
119: 118(bvec2) CompositeConstruct 90 90
120: 15(fvec2) Select 119 116 117
121: 118(bvec2) CompositeConstruct 63 63
122: 15(fvec2) Select 121 87 120
123: 118(bvec2) CompositeConstruct 44 44
124: 15(fvec2) Select 123 60 122
125: 118(bvec2) CompositeConstruct 29 29
126: 15(fvec2) Select 125 41 124
Store 17(r00) 126
132: 129 Load 131(g_tTex2dmsf4a)
133: 18(int) ImageQuerySamples 132
Store 128(@sampleCount) 133
134: 18(int) Load 128(@sampleCount)
135: 28(bool) IEqual 134 27
136: 6(int) Load 12(sample)
Store 137(indexable) 36
138: 16(ptr) AccessChain 137(indexable) 136
139: 15(fvec2) Load 138
140: 18(int) Load 128(@sampleCount)
141: 28(bool) IEqual 140 43
142: 6(int) Load 12(sample)
Store 143(indexable) 55
144: 16(ptr) AccessChain 143(indexable) 142
145: 15(fvec2) Load 144
146: 18(int) Load 128(@sampleCount)
147: 28(bool) IEqual 146 62
148: 6(int) Load 12(sample)
Store 149(indexable) 82
150: 16(ptr) AccessChain 149(indexable) 148
151: 15(fvec2) Load 150
152: 18(int) Load 128(@sampleCount)
153: 28(bool) IEqual 152 89
154: 6(int) Load 12(sample)
Store 155(indexable) 111
156: 16(ptr) AccessChain 155(indexable) 154
157: 15(fvec2) Load 156
158: 118(bvec2) CompositeConstruct 153 153
159: 15(fvec2) Select 158 157 117
160: 118(bvec2) CompositeConstruct 147 147
161: 15(fvec2) Select 160 151 159
162: 118(bvec2) CompositeConstruct 141 141
163: 15(fvec2) Select 162 145 161
164: 118(bvec2) CompositeConstruct 135 135
165: 15(fvec2) Select 164 139 163
Store 127(r01) 165
172: 171(ptr) AccessChain 167(psout) 168
Store 172 170
175: 174(ptr) AccessChain 167(psout) 173
Store 175 169
176:10(PS_OUTPUT) Load 167(psout)
ReturnValue 176
FunctionEnd
|