 f6facfa189
			
		
	
	
		f6facfa189
		
	
	
	
	
		
			
			This adds or changes binding/location decorations in 100s of shaders. It also allows more output (spv.register.autoassign.rangetest.frag) due to allowing ioMap() to fail.
		
			
				
	
	
		
			76 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			3.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| spv.voidFunction.frag
 | |
| // Module Version 10000
 | |
| // Generated by (magic number): 8000a
 | |
| // Id's are bound by 43
 | |
| 
 | |
|                               Capability Shader
 | |
|                1:             ExtInstImport  "GLSL.std.450"
 | |
|                               MemoryModel Logical GLSL450
 | |
|                               EntryPoint Fragment 4  "main" 24 37 40 42
 | |
|                               ExecutionMode 4 OriginUpperLeft
 | |
|                               Source GLSL 400
 | |
|                               Name 4  "main"
 | |
|                               Name 6  "foo("
 | |
|                               Name 8  "foo2("
 | |
|                               Name 12  "bar"
 | |
|                               Name 22  "outColor"
 | |
|                               Name 24  "bigColor"
 | |
|                               Name 37  "gl_FragColor"
 | |
|                               Name 40  "BaseColor"
 | |
|                               Name 42  "d"
 | |
|                               Decorate 24(bigColor) Location 0
 | |
|                               Decorate 37(gl_FragColor) Location 0
 | |
|                               Decorate 40(BaseColor) Location 1
 | |
|                               Decorate 42(d) Location 2
 | |
|                2:             TypeVoid
 | |
|                3:             TypeFunction 2
 | |
|               10:             TypeFloat 32
 | |
|               11:             TypePointer Private 10(float)
 | |
|          12(bar):     11(ptr) Variable Private
 | |
|               13:   10(float) Constant 1073741824
 | |
|               15:   10(float) Constant 1065353216
 | |
|               20:             TypeVector 10(float) 4
 | |
|               21:             TypePointer Function 20(fvec4)
 | |
|               23:             TypePointer Input 20(fvec4)
 | |
|     24(bigColor):     23(ptr) Variable Input
 | |
|               29:             TypeInt 32 0
 | |
|               30:     29(int) Constant 0
 | |
|               31:             TypePointer Function 10(float)
 | |
|               36:             TypePointer Output 20(fvec4)
 | |
| 37(gl_FragColor):     36(ptr) Variable Output
 | |
|    40(BaseColor):     23(ptr) Variable Input
 | |
|               41:             TypePointer Input 10(float)
 | |
|            42(d):     41(ptr) Variable Input
 | |
|          4(main):           2 Function None 3
 | |
|                5:             Label
 | |
|     22(outColor):     21(ptr) Variable Function
 | |
|                               Store 12(bar) 13
 | |
|               25:   20(fvec4) Load 24(bigColor)
 | |
|                               Store 22(outColor) 25
 | |
|               26:           2 FunctionCall 6(foo()
 | |
|               27:           2 FunctionCall 8(foo2()
 | |
|               28:   10(float) Load 12(bar)
 | |
|               32:     31(ptr) AccessChain 22(outColor) 30
 | |
|               33:   10(float) Load 32
 | |
|               34:   10(float) FAdd 33 28
 | |
|               35:     31(ptr) AccessChain 22(outColor) 30
 | |
|                               Store 35 34
 | |
|               38:   20(fvec4) Load 22(outColor)
 | |
|                               Store 37(gl_FragColor) 38
 | |
|                               Return
 | |
|                               FunctionEnd
 | |
|          6(foo():           2 Function None 3
 | |
|                7:             Label
 | |
|               14:   10(float) Load 12(bar)
 | |
|               16:   10(float) FAdd 14 15
 | |
|                               Store 12(bar) 16
 | |
|                               Return
 | |
|                               FunctionEnd
 | |
|         8(foo2():           2 Function None 3
 | |
|                9:             Label
 | |
|               18:   10(float) Load 12(bar)
 | |
|               19:   10(float) FAdd 18 15
 | |
|                               Store 12(bar) 19
 | |
|                               Return
 | |
|                               FunctionEnd
 |