TextureConfig: Collapse std namespace for hash
Lets us collapse the namespacing and make the specialization a little less noisy.
This commit is contained in:
parent
b63dcd504d
commit
8e4b2565cd
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue