From b63dcd504daed02412609057703fc2f418eec095 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 31 Jan 2024 12:40:08 -0500 Subject: [PATCH] RenderState: Collapse std namespace for hash We can specify the namespace on the hash to make the specialization a little less noisy. --- Source/Core/VideoCommon/RenderState.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Core/VideoCommon/RenderState.h b/Source/Core/VideoCommon/RenderState.h index 8e0902b88e..4a682b1a0f 100644 --- a/Source/Core/VideoCommon/RenderState.h +++ b/Source/Core/VideoCommon/RenderState.h @@ -220,17 +220,14 @@ struct SamplerState TM1 tm1; }; -namespace std -{ template <> -struct hash +struct std::hash { - std::size_t operator()(SamplerState const& state) const noexcept + std::size_t operator()(const SamplerState& state) const noexcept { return std::hash{}(state.Hex()); } }; -} // namespace std namespace RenderState {