TextureConfig: Collapse std namespace for hash

Lets us collapse the namespacing and make the specialization a little
less noisy.
This commit is contained in:
Lioncash 2024-01-31 12:41:30 -05:00
parent b63dcd504d
commit 8e4b2565cd
1 changed files with 1 additions and 4 deletions

View File

@ -79,10 +79,8 @@ struct TextureConfig
AbstractTextureType type = AbstractTextureType::Texture_2DArray; AbstractTextureType type = AbstractTextureType::Texture_2DArray;
}; };
namespace std
{
template <> template <>
struct hash<TextureConfig> struct std::hash<TextureConfig>
{ {
using argument_type = TextureConfig; using argument_type = TextureConfig;
using result_type = size_t; using result_type = size_t;
@ -95,4 +93,3 @@ struct hash<TextureConfig>
return std::hash<u64>{}(id); return std::hash<u64>{}(id);
} }
}; };
} // namespace std