Locations now get assigned in order, but skipping built-ins, which can be done post flattening.
		
			
				
	
	
		
			223 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			223 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
remap.hlsl.sample.basic.everything.frag
 | 
						|
WARNING: 0:4: 'immediate sampler state' : unimplemented 
 | 
						|
 | 
						|
 | 
						|
Linked fragment stage:
 | 
						|
 | 
						|
 | 
						|
// Module Version 10000
 | 
						|
// Generated by (magic number): 80001
 | 
						|
// Id's are bound by 24916
 | 
						|
 | 
						|
                              Capability Shader
 | 
						|
                              Capability Sampled1D
 | 
						|
               1:             ExtInstImport  "GLSL.std.450"
 | 
						|
                              MemoryModel Logical GLSL450
 | 
						|
                              EntryPoint Fragment 5663  "main" 4045 4656 4112
 | 
						|
                              ExecutionMode 5663 OriginUpperLeft
 | 
						|
                              Decorate 4727 DescriptorSet 0
 | 
						|
                              Decorate 4727 Binding 0
 | 
						|
                              Decorate 3305 DescriptorSet 0
 | 
						|
                              Decorate 3305 Binding 0
 | 
						|
                              Decorate 4743 DescriptorSet 0
 | 
						|
                              Decorate 4807 DescriptorSet 0
 | 
						|
                              Decorate 5042 DescriptorSet 0
 | 
						|
                              Decorate 5058 DescriptorSet 0
 | 
						|
                              Decorate 5122 DescriptorSet 0
 | 
						|
                              Decorate 3967 DescriptorSet 0
 | 
						|
                              Decorate 3983 DescriptorSet 0
 | 
						|
                              Decorate 4047 DescriptorSet 0
 | 
						|
                              Decorate 3789 DescriptorSet 0
 | 
						|
                              Decorate 3805 DescriptorSet 0
 | 
						|
                              Decorate 3869 DescriptorSet 0
 | 
						|
                              MemberDecorate 1032 1 BuiltIn FragDepth
 | 
						|
                              Decorate 4656 Location 0
 | 
						|
                              Decorate 4112 BuiltIn FragDepth
 | 
						|
               8:             TypeVoid
 | 
						|
            1282:             TypeFunction 8
 | 
						|
              12:             TypeInt 32 1
 | 
						|
            1335:             TypeStruct 12(int) 12(int) 12(int) 12(int) 12(int) 12(int) 12(int) 12(int) 12(int) 12(int) 12(int) 12(int)
 | 
						|
            1972:             TypePointer Function 1335(struct)
 | 
						|
            2574:     12(int) Constant 1
 | 
						|
             649:             TypePointer Function 12(int)
 | 
						|
            2577:     12(int) Constant 2
 | 
						|
            2580:     12(int) Constant 3
 | 
						|
            2583:     12(int) Constant 4
 | 
						|
            2586:     12(int) Constant 5
 | 
						|
            2589:     12(int) Constant 6
 | 
						|
            2571:     12(int) Constant 0
 | 
						|
            2592:     12(int) Constant 7
 | 
						|
            2595:     12(int) Constant 8
 | 
						|
            2598:     12(int) Constant 9
 | 
						|
            2601:     12(int) Constant 10
 | 
						|
            2604:     12(int) Constant 11
 | 
						|
              13:             TypeFloat 32
 | 
						|
              29:             TypeVector 13(float) 4
 | 
						|
             666:             TypePointer Function 29(fvec4)
 | 
						|
             149:             TypeImage 13(float) 1D sampled format:Unknown
 | 
						|
             786:             TypePointer UniformConstant 149
 | 
						|
            4727:    786(ptr) Variable UniformConstant
 | 
						|
             508:             TypeSampler
 | 
						|
            1145:             TypePointer UniformConstant 508
 | 
						|
            3305:   1145(ptr) Variable UniformConstant
 | 
						|
             510:             TypeSampledImage 149
 | 
						|
            2935:   13(float) Constant 1036831949
 | 
						|
              26:             TypeVector 12(int) 4
 | 
						|
             148:             TypeImage 12(int) 1D sampled format:Unknown
 | 
						|
             785:             TypePointer UniformConstant 148
 | 
						|
            4743:    785(ptr) Variable UniformConstant
 | 
						|
             511:             TypeSampledImage 148
 | 
						|
            2821:   13(float) Constant 1045220557
 | 
						|
              11:             TypeInt 32 0
 | 
						|
              23:             TypeVector 11(int) 4
 | 
						|
             147:             TypeImage 11(int) 1D sampled format:Unknown
 | 
						|
             784:             TypePointer UniformConstant 147
 | 
						|
            4807:    784(ptr) Variable UniformConstant
 | 
						|
             512:             TypeSampledImage 147
 | 
						|
            2151:   13(float) Constant 1050253722
 | 
						|
             150:             TypeImage 13(float) 2D sampled format:Unknown
 | 
						|
             787:             TypePointer UniformConstant 150
 | 
						|
            5042:    787(ptr) Variable UniformConstant
 | 
						|
             513:             TypeSampledImage 150
 | 
						|
              19:             TypeVector 13(float) 2
 | 
						|
            1825:   19(fvec2) ConstantComposite 2935 2821
 | 
						|
             151:             TypeImage 12(int) 2D sampled format:Unknown
 | 
						|
             788:             TypePointer UniformConstant 151
 | 
						|
            5058:    788(ptr) Variable UniformConstant
 | 
						|
             514:             TypeSampledImage 151
 | 
						|
            2707:   13(float) Constant 1053609165
 | 
						|
            2028:   19(fvec2) ConstantComposite 2151 2707
 | 
						|
             152:             TypeImage 11(int) 2D sampled format:Unknown
 | 
						|
             789:             TypePointer UniformConstant 152
 | 
						|
            5122:    789(ptr) Variable UniformConstant
 | 
						|
             515:             TypeSampledImage 152
 | 
						|
             252:   13(float) Constant 1056964608
 | 
						|
            2037:   13(float) Constant 1058642330
 | 
						|
            2684:   19(fvec2) ConstantComposite 252 2037
 | 
						|
             153:             TypeImage 13(float) 3D sampled format:Unknown
 | 
						|
             790:             TypePointer UniformConstant 153
 | 
						|
            3967:    790(ptr) Variable UniformConstant
 | 
						|
             516:             TypeSampledImage 153
 | 
						|
              24:             TypeVector 13(float) 3
 | 
						|
            1660:   24(fvec3) ConstantComposite 2935 2821 2151
 | 
						|
             154:             TypeImage 12(int) 3D sampled format:Unknown
 | 
						|
             791:             TypePointer UniformConstant 154
 | 
						|
            3983:    791(ptr) Variable UniformConstant
 | 
						|
             517:             TypeSampledImage 154
 | 
						|
            2174:   24(fvec3) ConstantComposite 2707 252 2037
 | 
						|
             155:             TypeImage 11(int) 3D sampled format:Unknown
 | 
						|
             792:             TypePointer UniformConstant 155
 | 
						|
            4047:    792(ptr) Variable UniformConstant
 | 
						|
             518:             TypeSampledImage 155
 | 
						|
             808:   13(float) Constant 1060320051
 | 
						|
            2593:   13(float) Constant 1061997773
 | 
						|
            1364:   13(float) Constant 1063675494
 | 
						|
            2476:   24(fvec3) ConstantComposite 808 2593 1364
 | 
						|
             156:             TypeImage 13(float) Cube sampled format:Unknown
 | 
						|
             793:             TypePointer UniformConstant 156
 | 
						|
            3789:    793(ptr) Variable UniformConstant
 | 
						|
             519:             TypeSampledImage 156
 | 
						|
             157:             TypeImage 12(int) Cube sampled format:Unknown
 | 
						|
             794:             TypePointer UniformConstant 157
 | 
						|
            3805:    794(ptr) Variable UniformConstant
 | 
						|
             520:             TypeSampledImage 157
 | 
						|
             158:             TypeImage 11(int) Cube sampled format:Unknown
 | 
						|
             795:             TypePointer UniformConstant 158
 | 
						|
            3869:    795(ptr) Variable UniformConstant
 | 
						|
             521:             TypeSampledImage 158
 | 
						|
            1032:             TypeStruct 29(fvec4) 13(float)
 | 
						|
            1669:             TypePointer Function 1032(struct)
 | 
						|
             138:   13(float) Constant 1065353216
 | 
						|
            1284:   29(fvec4) ConstantComposite 138 138 138 138
 | 
						|
             650:             TypePointer Function 13(float)
 | 
						|
            1670:             TypePointer Output 1032(struct)
 | 
						|
            4045:   1670(ptr) Variable Output
 | 
						|
             667:             TypePointer Output 29(fvec4)
 | 
						|
            4656:    667(ptr) Variable Output
 | 
						|
             651:             TypePointer Output 13(float)
 | 
						|
            4112:    651(ptr) Variable Output
 | 
						|
            5663:           8 Function None 1282
 | 
						|
           24915:             Label
 | 
						|
            5830:   1972(ptr) Variable Function
 | 
						|
            5072:   1669(ptr) Variable Function
 | 
						|
           22097:    649(ptr) AccessChain 5830 2574
 | 
						|
                              Store 22097 2574
 | 
						|
           19732:    649(ptr) AccessChain 5830 2577
 | 
						|
                              Store 19732 2574
 | 
						|
           19733:    649(ptr) AccessChain 5830 2580
 | 
						|
                              Store 19733 2574
 | 
						|
           19734:    649(ptr) AccessChain 5830 2583
 | 
						|
                              Store 19734 2574
 | 
						|
           19735:    649(ptr) AccessChain 5830 2586
 | 
						|
                              Store 19735 2574
 | 
						|
           19736:    649(ptr) AccessChain 5830 2589
 | 
						|
                              Store 19736 2574
 | 
						|
           19737:    649(ptr) AccessChain 5830 2571
 | 
						|
                              Store 19737 2574
 | 
						|
           19738:    649(ptr) AccessChain 5830 2592
 | 
						|
                              Store 19738 2574
 | 
						|
           19739:    649(ptr) AccessChain 5830 2595
 | 
						|
                              Store 19739 2574
 | 
						|
           19740:    649(ptr) AccessChain 5830 2598
 | 
						|
                              Store 19740 2574
 | 
						|
           19741:    649(ptr) AccessChain 5830 2601
 | 
						|
                              Store 19741 2574
 | 
						|
           19656:    649(ptr) AccessChain 5830 2604
 | 
						|
                              Store 19656 2574
 | 
						|
           14934:         149 Load 4727
 | 
						|
           11686:         508 Load 3305
 | 
						|
           11940:         510 SampledImage 14934 11686
 | 
						|
            7877:   29(fvec4) ImageSampleImplicitLod 11940 2935
 | 
						|
           15360:         148 Load 4743
 | 
						|
           15706:         508 Load 3305
 | 
						|
           11941:         511 SampledImage 15360 15706
 | 
						|
            7878:   26(ivec4) ImageSampleImplicitLod 11941 2821
 | 
						|
           15361:         147 Load 4807
 | 
						|
           15707:         508 Load 3305
 | 
						|
           11942:         512 SampledImage 15361 15707
 | 
						|
            7879:   23(ivec4) ImageSampleImplicitLod 11942 2151
 | 
						|
           15362:         150 Load 5042
 | 
						|
           15708:         508 Load 3305
 | 
						|
           11943:         513 SampledImage 15362 15708
 | 
						|
            7880:   29(fvec4) ImageSampleImplicitLod 11943 1825
 | 
						|
           15363:         151 Load 5058
 | 
						|
           15709:         508 Load 3305
 | 
						|
           11944:         514 SampledImage 15363 15709
 | 
						|
            7881:   26(ivec4) ImageSampleImplicitLod 11944 2028
 | 
						|
           15364:         152 Load 5122
 | 
						|
           15710:         508 Load 3305
 | 
						|
           11945:         515 SampledImage 15364 15710
 | 
						|
            7882:   23(ivec4) ImageSampleImplicitLod 11945 2684
 | 
						|
           15365:         153 Load 3967
 | 
						|
           15711:         508 Load 3305
 | 
						|
           11946:         516 SampledImage 15365 15711
 | 
						|
            7883:   29(fvec4) ImageSampleImplicitLod 11946 1660
 | 
						|
           15366:         154 Load 3983
 | 
						|
           15712:         508 Load 3305
 | 
						|
           11947:         517 SampledImage 15366 15712
 | 
						|
            7884:   26(ivec4) ImageSampleImplicitLod 11947 2174
 | 
						|
           15367:         155 Load 4047
 | 
						|
           15713:         508 Load 3305
 | 
						|
           11948:         518 SampledImage 15367 15713
 | 
						|
            7885:   23(ivec4) ImageSampleImplicitLod 11948 2476
 | 
						|
           15368:         156 Load 3789
 | 
						|
           15714:         508 Load 3305
 | 
						|
           11949:         519 SampledImage 15368 15714
 | 
						|
            7886:   29(fvec4) ImageSampleImplicitLod 11949 1660
 | 
						|
           15369:         157 Load 3805
 | 
						|
           15715:         508 Load 3305
 | 
						|
           11950:         520 SampledImage 15369 15715
 | 
						|
            7887:   26(ivec4) ImageSampleImplicitLod 11950 2174
 | 
						|
           15370:         158 Load 3869
 | 
						|
           15716:         508 Load 3305
 | 
						|
           12016:         521 SampledImage 15370 15716
 | 
						|
            7204:   23(ivec4) ImageSampleImplicitLod 12016 2476
 | 
						|
           20158:    666(ptr) AccessChain 5072 2571
 | 
						|
                              Store 20158 1284
 | 
						|
           19657:    650(ptr) AccessChain 5072 2574
 | 
						|
                              Store 19657 138
 | 
						|
           17934:1032(struct) Load 5072
 | 
						|
                              Store 4045 17934
 | 
						|
                              Return
 | 
						|
                              FunctionEnd
 |