@ -12,7 +12,7 @@
# include "common/common_types.h"
# include "common/common_types.h"
# include "common/hash.h"
# include "common/hash.h"
namespace GLShader {
namespace OpenGL : : GLShader {
constexpr size_t MAX_PROGRAM_CODE_LENGTH { 0x1000 } ;
constexpr size_t MAX_PROGRAM_CODE_LENGTH { 0x1000 } ;
@ -191,20 +191,20 @@ ProgramResult GenerateVertexShader(const ShaderSetup& setup, const MaxwellVSConf
*/
*/
ProgramResult GenerateFragmentShader ( const ShaderSetup & setup , const MaxwellFSConfig & config ) ;
ProgramResult GenerateFragmentShader ( const ShaderSetup & setup , const MaxwellFSConfig & config ) ;
} / / namespace GLShader
} / / namespace OpenGL : : GLShader
namespace std {
namespace std {
template < >
template < >
struct hash < GLShader : : MaxwellVSConfig > {
size_t operator ( ) ( const GLShader : : MaxwellVSConfig & k ) const {
struct hash < OpenGL : : GLShader : : MaxwellVSConfig > {
size_t operator ( ) ( const OpenGL : : GLShader : : MaxwellVSConfig & k ) const {
return k . Hash ( ) ;
return k . Hash ( ) ;
}
}
} ;
} ;
template < >
template < >
struct hash < GLShader : : MaxwellFSConfig > {
size_t operator ( ) ( const GLShader : : MaxwellFSConfig & k ) const {
struct hash < OpenGL : : GLShader : : MaxwellFSConfig > {
size_t operator ( ) ( const OpenGL : : GLShader : : MaxwellFSConfig & k ) const {
return k . Hash ( ) ;
return k . Hash ( ) ;
}
}
} ;
} ;