mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
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:
@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user