mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	shader_bytecode: Make operator== and operator!= of IpaMode const qualified
These don't affect the state of the struct and can be const member functions.
This commit is contained in:
		
							parent
							
								
									f237265187
								
							
						
					
					
						commit
						272517cf7e
					
				@ -5,9 +5,8 @@
 | 
				
			|||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <bitset>
 | 
					#include <bitset>
 | 
				
			||||||
#include <cstring>
 | 
					 | 
				
			||||||
#include <map>
 | 
					 | 
				
			||||||
#include <string>
 | 
					#include <string>
 | 
				
			||||||
 | 
					#include <tuple>
 | 
				
			||||||
#include <vector>
 | 
					#include <vector>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <boost/optional.hpp>
 | 
					#include <boost/optional.hpp>
 | 
				
			||||||
@ -321,11 +320,13 @@ enum class IpaSampleMode : u64 { Default = 0, Centroid = 1, Offset = 2 };
 | 
				
			|||||||
struct IpaMode {
 | 
					struct IpaMode {
 | 
				
			||||||
    IpaInterpMode interpolation_mode;
 | 
					    IpaInterpMode interpolation_mode;
 | 
				
			||||||
    IpaSampleMode sampling_mode;
 | 
					    IpaSampleMode sampling_mode;
 | 
				
			||||||
    inline bool operator==(const IpaMode& a) {
 | 
					
 | 
				
			||||||
        return (a.interpolation_mode == interpolation_mode) && (a.sampling_mode == sampling_mode);
 | 
					    bool operator==(const IpaMode& a) const {
 | 
				
			||||||
 | 
					        return std::tie(interpolation_mode, sampling_mode) ==
 | 
				
			||||||
 | 
					               std::tie(a.interpolation_mode, a.sampling_mode);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    inline bool operator!=(const IpaMode& a) {
 | 
					    bool operator!=(const IpaMode& a) const {
 | 
				
			||||||
        return !((*this) == a);
 | 
					        return !operator==(a);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user