diff options
Diffstat (limited to 'Source/Core/VideoCommon/NativeVertexFormat.h')
| -rw-r--r-- | Source/Core/VideoCommon/NativeVertexFormat.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/NativeVertexFormat.h b/Source/Core/VideoCommon/NativeVertexFormat.h index ebc95cdc45..8778423d3f 100644 --- a/Source/Core/VideoCommon/NativeVertexFormat.h +++ b/Source/Core/VideoCommon/NativeVertexFormat.h @@ -4,7 +4,7 @@ #pragma once -#include "Common/CommonTypes.h" +#include "Common/Hash.h" // m_components enum @@ -87,6 +87,20 @@ struct PortableVertexDeclaration } }; +namespace std +{ + +template <> +struct hash<PortableVertexDeclaration> +{ + size_t operator()(const PortableVertexDeclaration& decl) const + { + return HashFletcher((u8 *) &decl, sizeof(decl)); + } +}; + +} + // The implementation of this class is specific for GL/DX, so NativeVertexFormat.cpp // is in the respective backend, not here in VideoCommon. |
