RenderState: Collapse std namespace for hash

We can specify the namespace on the hash to make the specialization a
little less noisy.
This commit is contained in:
Lioncash 2024-01-31 12:40:08 -05:00
parent 5bfaa3a966
commit b63dcd504d
1 changed files with 2 additions and 5 deletions

View File

@ -220,17 +220,14 @@ struct SamplerState
TM1 tm1; TM1 tm1;
}; };
namespace std
{
template <> template <>
struct hash<SamplerState> struct std::hash<SamplerState>
{ {
std::size_t operator()(SamplerState const& state) const noexcept std::size_t operator()(const SamplerState& state) const noexcept
{ {
return std::hash<u64>{}(state.Hex()); return std::hash<u64>{}(state.Hex());
} }
}; };
} // namespace std
namespace RenderState namespace RenderState
{ {