 76117921b9
			
		
	
	
		76117921b9
		
	
	
	
	
		
			
			There were several locations in TGlslangToSpvTraverser::handleUserFunctionCall testing for whether a fn argument should be in the lvalue or rvalue array. They must get the same result for indexing sanity, but had slightly different logic. They're now forced into the same test.
		
			
				
	
	
		
			17 lines
		
	
	
		
			370 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			370 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| 
 | |
| Texture2D      MyTexture : register(t0);
 | |
| 
 | |
| //----------------------------------------------------------------------------------------
 | |
| void TexFunc(in const Texture2D t2D, out float3 RGB)
 | |
| {    
 | |
|     RGB = 0;
 | |
| }
 | |
| 
 | |
| //-----------------------------------------------------------------------------------
 | |
| void main() 
 | |
| {
 | |
|     float3 final_RGB;
 | |
| 
 | |
|     TexFunc(MyTexture, final_RGB);
 | |
| }
 |