1 hlsl.getsampleposition.dx10.frag
3 gl_FragCoord origin is upper left
6 0:13 Function Definition: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
7 0:13 Function Parameters:
8 0:13 'sample' ( in int)
11 0:16 move second child to first child ( temp 2-component vector of float)
12 0:16 'r00' ( temp 2-component vector of float)
14 0:16 move second child to first child ( temp uint)
15 0:16 '@sampleCount' ( temp uint)
16 0:16 imageQuerySamples ( temp uint)
17 0:16 'g_tTex2dmsf4' ( uniform texture2DMS)
18 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
20 0:16 Compare Equal ( temp bool)
21 0:16 '@sampleCount' ( temp uint)
25 0:16 indirect index ( temp 2-component vector of float)
31 0:16 'sample' ( in int)
33 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
35 0:16 Compare Equal ( temp bool)
36 0:16 '@sampleCount' ( temp uint)
40 0:16 indirect index ( temp 2-component vector of float)
50 0:16 'sample' ( in int)
52 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
54 0:16 Compare Equal ( temp bool)
55 0:16 '@sampleCount' ( temp uint)
59 0:16 indirect index ( temp 2-component vector of float)
77 0:16 'sample' ( in int)
79 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
81 0:16 Compare Equal ( temp bool)
82 0:16 '@sampleCount' ( temp uint)
86 0:16 indirect index ( temp 2-component vector of float)
120 0:16 'sample' ( in int)
126 0:17 move second child to first child ( temp 2-component vector of float)
127 0:17 'r01' ( temp 2-component vector of float)
129 0:17 move second child to first child ( temp uint)
130 0:17 '@sampleCount' ( temp uint)
131 0:17 imageQuerySamples ( temp uint)
132 0:17 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
133 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
135 0:17 Compare Equal ( temp bool)
136 0:17 '@sampleCount' ( temp uint)
140 0:17 indirect index ( temp 2-component vector of float)
146 0:17 'sample' ( in int)
148 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
150 0:17 Compare Equal ( temp bool)
151 0:17 '@sampleCount' ( temp uint)
155 0:17 indirect index ( temp 2-component vector of float)
165 0:17 'sample' ( in int)
167 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
169 0:17 Compare Equal ( temp bool)
170 0:17 '@sampleCount' ( temp uint)
174 0:17 indirect index ( temp 2-component vector of float)
192 0:17 'sample' ( in int)
194 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
196 0:17 Compare Equal ( temp bool)
197 0:17 '@sampleCount' ( temp uint)
201 0:17 indirect index ( temp 2-component vector of float)
235 0:17 'sample' ( in int)
240 0:19 move second child to first child ( temp 4-component vector of float)
241 0:19 Color: direct index for structure ( temp 4-component vector of float)
242 0:19 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
250 0:20 move second child to first child ( temp float)
251 0:20 Depth: direct index for structure ( temp float)
252 0:20 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
257 0:22 Branch: Return with expression
258 0:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
259 0:13 Function Definition: main( ( temp void)
260 0:13 Function Parameters:
262 0:13 move second child to first child ( temp int)
263 0:? 'sample' ( temp int)
264 0:? 'sample' (layout( location=0) flat in int)
266 0:13 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
267 0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
268 0:13 Function Call: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
269 0:? 'sample' ( temp int)
270 0:13 move second child to first child ( temp 4-component vector of float)
271 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
272 0:13 Color: direct index for structure ( temp 4-component vector of float)
273 0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
276 0:13 move second child to first child ( temp float)
277 0:? '@entryPointOutput.Depth' ( out float FragDepth)
278 0:13 Depth: direct index for structure ( temp float)
279 0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
283 0:? 'g_sSamp' (layout( binding=0) uniform sampler)
284 0:? 'g_tTex2dmsf4' ( uniform texture2DMS)
285 0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
286 0:? '@entryPointOutput.Depth' ( out float FragDepth)
287 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
288 0:? 'sample' (layout( location=0) flat in int)
291 Linked fragment stage:
295 gl_FragCoord origin is upper left
298 0:13 Function Definition: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
299 0:13 Function Parameters:
300 0:13 'sample' ( in int)
303 0:16 move second child to first child ( temp 2-component vector of float)
304 0:16 'r00' ( temp 2-component vector of float)
306 0:16 move second child to first child ( temp uint)
307 0:16 '@sampleCount' ( temp uint)
308 0:16 imageQuerySamples ( temp uint)
309 0:16 'g_tTex2dmsf4' ( uniform texture2DMS)
310 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
312 0:16 Compare Equal ( temp bool)
313 0:16 '@sampleCount' ( temp uint)
317 0:16 indirect index ( temp 2-component vector of float)
323 0:16 'sample' ( in int)
325 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
327 0:16 Compare Equal ( temp bool)
328 0:16 '@sampleCount' ( temp uint)
332 0:16 indirect index ( temp 2-component vector of float)
342 0:16 'sample' ( in int)
344 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
346 0:16 Compare Equal ( temp bool)
347 0:16 '@sampleCount' ( temp uint)
351 0:16 indirect index ( temp 2-component vector of float)
369 0:16 'sample' ( in int)
371 0:16 Test condition and select ( temp 2-component vector of float): no shortcircuit
373 0:16 Compare Equal ( temp bool)
374 0:16 '@sampleCount' ( temp uint)
378 0:16 indirect index ( temp 2-component vector of float)
412 0:16 'sample' ( in int)
418 0:17 move second child to first child ( temp 2-component vector of float)
419 0:17 'r01' ( temp 2-component vector of float)
421 0:17 move second child to first child ( temp uint)
422 0:17 '@sampleCount' ( temp uint)
423 0:17 imageQuerySamples ( temp uint)
424 0:17 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
425 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
427 0:17 Compare Equal ( temp bool)
428 0:17 '@sampleCount' ( temp uint)
432 0:17 indirect index ( temp 2-component vector of float)
438 0:17 'sample' ( in int)
440 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
442 0:17 Compare Equal ( temp bool)
443 0:17 '@sampleCount' ( temp uint)
447 0:17 indirect index ( temp 2-component vector of float)
457 0:17 'sample' ( in int)
459 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
461 0:17 Compare Equal ( temp bool)
462 0:17 '@sampleCount' ( temp uint)
466 0:17 indirect index ( temp 2-component vector of float)
484 0:17 'sample' ( in int)
486 0:17 Test condition and select ( temp 2-component vector of float): no shortcircuit
488 0:17 Compare Equal ( temp bool)
489 0:17 '@sampleCount' ( temp uint)
493 0:17 indirect index ( temp 2-component vector of float)
527 0:17 'sample' ( in int)
532 0:19 move second child to first child ( temp 4-component vector of float)
533 0:19 Color: direct index for structure ( temp 4-component vector of float)
534 0:19 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
542 0:20 move second child to first child ( temp float)
543 0:20 Depth: direct index for structure ( temp float)
544 0:20 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
549 0:22 Branch: Return with expression
550 0:22 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
551 0:13 Function Definition: main( ( temp void)
552 0:13 Function Parameters:
554 0:13 move second child to first child ( temp int)
555 0:? 'sample' ( temp int)
556 0:? 'sample' (layout( location=0) flat in int)
558 0:13 move second child to first child ( temp structure{ temp 4-component vector of float Color, temp float Depth})
559 0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
560 0:13 Function Call: @main(i1; ( temp structure{ temp 4-component vector of float Color, temp float Depth})
561 0:? 'sample' ( temp int)
562 0:13 move second child to first child ( temp 4-component vector of float)
563 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
564 0:13 Color: direct index for structure ( temp 4-component vector of float)
565 0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
568 0:13 move second child to first child ( temp float)
569 0:? '@entryPointOutput.Depth' ( out float FragDepth)
570 0:13 Depth: direct index for structure ( temp float)
571 0:13 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
575 0:? 'g_sSamp' (layout( binding=0) uniform sampler)
576 0:? 'g_tTex2dmsf4' ( uniform texture2DMS)
577 0:? 'g_tTex2dmsf4a' ( uniform texture2DMSArray)
578 0:? '@entryPointOutput.Depth' ( out float FragDepth)
579 0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
580 0:? 'sample' (layout( location=0) flat in int)
582 // Module Version 10000
583 // Generated by (magic number): 8000a
584 // Id's are bound by 198
587 Capability ImageQuery
588 1: ExtInstImport "GLSL.std.450"
589 MemoryModel Logical GLSL450
590 EntryPoint Fragment 4 "main" 181 188 192
591 ExecutionMode 4 OriginUpperLeft
592 ExecutionMode 4 DepthReplacing
596 MemberName 10(PS_OUTPUT) 0 "Color"
597 MemberName 10(PS_OUTPUT) 1 "Depth"
601 Name 20 "@sampleCount"
602 Name 23 "g_tTex2dmsf4"
608 Name 128 "@sampleCount"
609 Name 131 "g_tTex2dmsf4a"
617 Name 183 "flattenTemp"
619 Name 188 "@entryPointOutput.Color"
620 Name 192 "@entryPointOutput.Depth"
622 Decorate 23(g_tTex2dmsf4) DescriptorSet 0
623 Decorate 23(g_tTex2dmsf4) Binding 1
624 Decorate 131(g_tTex2dmsf4a) DescriptorSet 0
625 Decorate 131(g_tTex2dmsf4a) Binding 2
626 Decorate 181(sample) Flat
627 Decorate 181(sample) Location 0
628 Decorate 188(@entryPointOutput.Color) Location 0
629 Decorate 192(@entryPointOutput.Depth) BuiltIn FragDepth
630 Decorate 197(g_sSamp) DescriptorSet 0
631 Decorate 197(g_sSamp) Binding 0
635 7: TypePointer Function 6(int)
637 9: TypeVector 8(float) 4
638 10(PS_OUTPUT): TypeStruct 9(fvec4) 8(float)
639 11: TypeFunction 10(PS_OUTPUT) 7(ptr)
640 15: TypeVector 8(float) 2
641 16: TypePointer Function 15(fvec2)
643 19: TypePointer Function 18(int)
644 21: TypeImage 8(float) 2D multi-sampled sampled format:Unknown
645 22: TypePointer UniformConstant 21
646 23(g_tTex2dmsf4): 22(ptr) Variable UniformConstant
647 27: 6(int) Constant 2
649 30: 18(int) Constant 2
650 31: TypeArray 15(fvec2) 30
651 32: 8(float) Constant 1048576000
652 33: 15(fvec2) ConstantComposite 32 32
653 34: 8(float) Constant 3196059648
654 35: 15(fvec2) ConstantComposite 34 34
655 36: 31 ConstantComposite 33 35
656 38: TypePointer Function 31
657 43: 6(int) Constant 4
658 45: 18(int) Constant 4
659 46: TypeArray 15(fvec2) 45
660 47: 8(float) Constant 3187671040
661 48: 8(float) Constant 3200253952
662 49: 15(fvec2) ConstantComposite 47 48
663 50: 8(float) Constant 1052770304
664 51: 15(fvec2) ConstantComposite 50 47
665 52: 8(float) Constant 1040187392
666 53: 15(fvec2) ConstantComposite 48 52
667 54: 15(fvec2) ConstantComposite 52 50
668 55: 46 ConstantComposite 49 51 53 54
669 57: TypePointer Function 46
670 62: 6(int) Constant 8
671 64: 18(int) Constant 8
672 65: TypeArray 15(fvec2) 64
673 66: 8(float) Constant 1031798784
674 67: 8(float) Constant 3191865344
675 68: 15(fvec2) ConstantComposite 66 67
676 69: 8(float) Constant 3179282432
677 70: 8(float) Constant 1044381696
678 71: 15(fvec2) ConstantComposite 69 70
679 72: 8(float) Constant 1050673152
680 73: 15(fvec2) ConstantComposite 72 66
681 74: 8(float) Constant 3198156800
682 75: 15(fvec2) ConstantComposite 67 74
683 76: 15(fvec2) ConstantComposite 74 72
684 77: 8(float) Constant 3202351104
685 78: 15(fvec2) ConstantComposite 77 69
686 79: 8(float) Constant 1054867456
687 80: 15(fvec2) ConstantComposite 70 79
688 81: 15(fvec2) ConstantComposite 79 77
689 82: 65 ConstantComposite 68 71 73 75 76 78 80 81
690 84: TypePointer Function 65
691 89: 6(int) Constant 16
692 91: 18(int) Constant 16
693 92: TypeArray 15(fvec2) 91
694 93: 15(fvec2) ConstantComposite 66 66
695 94: 15(fvec2) ConstantComposite 69 67
696 95: 15(fvec2) ConstantComposite 67 52
697 96: 15(fvec2) ConstantComposite 32 69
698 97: 15(fvec2) ConstantComposite 74 47
699 98: 15(fvec2) ConstantComposite 52 72
700 99: 15(fvec2) ConstantComposite 72 70
701 100: 15(fvec2) ConstantComposite 70 74
702 101: 15(fvec2) ConstantComposite 47 50
703 102: 8(float) Constant 0
704 103: 15(fvec2) ConstantComposite 102 77
705 104: 15(fvec2) ConstantComposite 34 48
706 105: 15(fvec2) ConstantComposite 48 32
707 106: 8(float) Constant 3204448256
708 107: 15(fvec2) ConstantComposite 106 102
709 108: 15(fvec2) ConstantComposite 79 34
710 109: 15(fvec2) ConstantComposite 50 79
711 110: 15(fvec2) ConstantComposite 77 106
712 111: 92 ConstantComposite 93 94 95 96 97 98 99 100 101 103 104 105 107 108 109 110
713 113: TypePointer Function 92
714 117: 15(fvec2) ConstantComposite 102 102
715 118: TypeVector 28(bool) 2
716 129: TypeImage 8(float) 2D array multi-sampled sampled format:Unknown
717 130: TypePointer UniformConstant 129
718 131(g_tTex2dmsf4a): 130(ptr) Variable UniformConstant
719 166: TypePointer Function 10(PS_OUTPUT)
720 168: 6(int) Constant 0
721 169: 8(float) Constant 1065353216
722 170: 9(fvec4) ConstantComposite 169 169 169 169
723 171: TypePointer Function 9(fvec4)
724 173: 6(int) Constant 1
725 174: TypePointer Function 8(float)
726 180: TypePointer Input 6(int)
727 181(sample): 180(ptr) Variable Input
728 187: TypePointer Output 9(fvec4)
729 188(@entryPointOutput.Color): 187(ptr) Variable Output
730 191: TypePointer Output 8(float)
731 192(@entryPointOutput.Depth): 191(ptr) Variable Output
733 196: TypePointer UniformConstant 195
734 197(g_sSamp): 196(ptr) Variable UniformConstant
735 4(main): 2 Function None 3
737 179(sample): 7(ptr) Variable Function
738 183(flattenTemp): 166(ptr) Variable Function
739 184(param): 7(ptr) Variable Function
740 182: 6(int) Load 181(sample)
741 Store 179(sample) 182
742 185: 6(int) Load 179(sample)
744 186:10(PS_OUTPUT) FunctionCall 13(@main(i1;) 184(param)
745 Store 183(flattenTemp) 186
746 189: 171(ptr) AccessChain 183(flattenTemp) 168
747 190: 9(fvec4) Load 189
748 Store 188(@entryPointOutput.Color) 190
749 193: 174(ptr) AccessChain 183(flattenTemp) 173
750 194: 8(float) Load 193
751 Store 192(@entryPointOutput.Depth) 194
754 13(@main(i1;):10(PS_OUTPUT) Function None 11
755 12(sample): 7(ptr) FunctionParameter
757 17(r00): 16(ptr) Variable Function
758 20(@sampleCount): 19(ptr) Variable Function
759 39(indexable): 38(ptr) Variable Function
760 58(indexable): 57(ptr) Variable Function
761 85(indexable): 84(ptr) Variable Function
762 114(indexable): 113(ptr) Variable Function
763 127(r01): 16(ptr) Variable Function
764 128(@sampleCount): 19(ptr) Variable Function
765 137(indexable): 38(ptr) Variable Function
766 143(indexable): 57(ptr) Variable Function
767 149(indexable): 84(ptr) Variable Function
768 155(indexable): 113(ptr) Variable Function
769 167(psout): 166(ptr) Variable Function
770 24: 21 Load 23(g_tTex2dmsf4)
771 25: 18(int) ImageQuerySamples 24
772 Store 20(@sampleCount) 25
773 26: 18(int) Load 20(@sampleCount)
774 29: 28(bool) IEqual 26 27
775 37: 6(int) Load 12(sample)
776 Store 39(indexable) 36
777 40: 16(ptr) AccessChain 39(indexable) 37
778 41: 15(fvec2) Load 40
779 42: 18(int) Load 20(@sampleCount)
780 44: 28(bool) IEqual 42 43
781 56: 6(int) Load 12(sample)
782 Store 58(indexable) 55
783 59: 16(ptr) AccessChain 58(indexable) 56
784 60: 15(fvec2) Load 59
785 61: 18(int) Load 20(@sampleCount)
786 63: 28(bool) IEqual 61 62
787 83: 6(int) Load 12(sample)
788 Store 85(indexable) 82
789 86: 16(ptr) AccessChain 85(indexable) 83
790 87: 15(fvec2) Load 86
791 88: 18(int) Load 20(@sampleCount)
792 90: 28(bool) IEqual 88 89
793 112: 6(int) Load 12(sample)
794 Store 114(indexable) 111
795 115: 16(ptr) AccessChain 114(indexable) 112
796 116: 15(fvec2) Load 115
797 119: 118(bvec2) CompositeConstruct 90 90
798 120: 15(fvec2) Select 119 116 117
799 121: 118(bvec2) CompositeConstruct 63 63
800 122: 15(fvec2) Select 121 87 120
801 123: 118(bvec2) CompositeConstruct 44 44
802 124: 15(fvec2) Select 123 60 122
803 125: 118(bvec2) CompositeConstruct 29 29
804 126: 15(fvec2) Select 125 41 124
806 132: 129 Load 131(g_tTex2dmsf4a)
807 133: 18(int) ImageQuerySamples 132
808 Store 128(@sampleCount) 133
809 134: 18(int) Load 128(@sampleCount)
810 135: 28(bool) IEqual 134 27
811 136: 6(int) Load 12(sample)
812 Store 137(indexable) 36
813 138: 16(ptr) AccessChain 137(indexable) 136
814 139: 15(fvec2) Load 138
815 140: 18(int) Load 128(@sampleCount)
816 141: 28(bool) IEqual 140 43
817 142: 6(int) Load 12(sample)
818 Store 143(indexable) 55
819 144: 16(ptr) AccessChain 143(indexable) 142
820 145: 15(fvec2) Load 144
821 146: 18(int) Load 128(@sampleCount)
822 147: 28(bool) IEqual 146 62
823 148: 6(int) Load 12(sample)
824 Store 149(indexable) 82
825 150: 16(ptr) AccessChain 149(indexable) 148
826 151: 15(fvec2) Load 150
827 152: 18(int) Load 128(@sampleCount)
828 153: 28(bool) IEqual 152 89
829 154: 6(int) Load 12(sample)
830 Store 155(indexable) 111
831 156: 16(ptr) AccessChain 155(indexable) 154
832 157: 15(fvec2) Load 156
833 158: 118(bvec2) CompositeConstruct 153 153
834 159: 15(fvec2) Select 158 157 117
835 160: 118(bvec2) CompositeConstruct 147 147
836 161: 15(fvec2) Select 160 151 159
837 162: 118(bvec2) CompositeConstruct 141 141
838 163: 15(fvec2) Select 162 145 161
839 164: 118(bvec2) CompositeConstruct 135 135
840 165: 15(fvec2) Select 164 139 163
842 172: 171(ptr) AccessChain 167(psout) 168
844 175: 174(ptr) AccessChain 167(psout) 173
846 176:10(PS_OUTPUT) Load 167(psout)