mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 23:49:01 -05:00 
			
		
		
		
	vk_sampler_cache: Use operator== instead of memcmp
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
This commit is contained in:
		| @@ -35,7 +35,7 @@ std::size_t SamplerCacheKey::Hash() const { | |||||||
| } | } | ||||||
|  |  | ||||||
| bool SamplerCacheKey::operator==(const SamplerCacheKey& rhs) const { | bool SamplerCacheKey::operator==(const SamplerCacheKey& rhs) const { | ||||||
|     return std::memcmp(raw.data(), rhs.raw.data(), sizeof(raw)) == 0; |     return raw == rhs.raw; | ||||||
| } | } | ||||||
|  |  | ||||||
| VKSamplerCache::VKSamplerCache(const VKDevice& device) : device{device} {} | VKSamplerCache::VKSamplerCache(const VKDevice& device) : device{device} {} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mat M
					Mat M