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:
parent
5bfaa3a966
commit
b63dcd504d
|
@ -220,17 +220,14 @@ struct SamplerState
|
|||
TM1 tm1;
|
||||
};
|
||||
|
||||
namespace std
|
||||
{
|
||||
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());
|
||||
}
|
||||
};
|
||||
} // namespace std
|
||||
|
||||
namespace RenderState
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue