mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	gl_shader_decompiler: Fix warnings with MarkAsUsed.
This commit is contained in:
		
							parent
							
								
									ed542a7309
								
							
						
					
					
						commit
						1f6fe062ca
					
				@ -207,7 +207,8 @@ private:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /// Generates code representing a uniform (C buffer) register.
 | 
					    /// Generates code representing a uniform (C buffer) register.
 | 
				
			||||||
    std::string GetUniform(const Uniform& reg) {
 | 
					    std::string GetUniform(const Uniform& reg) {
 | 
				
			||||||
        declr_const_buffers[reg.index].MarkAsUsed(reg.index, reg.offset, stage);
 | 
					        declr_const_buffers[reg.index].MarkAsUsed(static_cast<unsigned>(reg.index),
 | 
				
			||||||
 | 
					                                                  static_cast<unsigned>(reg.offset), stage);
 | 
				
			||||||
        return 'c' + std::to_string(reg.index) + '[' + std::to_string(reg.offset) + ']';
 | 
					        return 'c' + std::to_string(reg.index) + '[' + std::to_string(reg.offset) + ']';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user