gl_shader_gen: Mark hash implementations as noexcept

These shouldn't throw at all, so we can mark the interface as such.
This commit is contained in:
Lioncash 2020-04-30 22:05:46 -04:00
parent d23ffe9b42
commit f20120e5a7
2 changed files with 9 additions and 9 deletions

View file

@ -237,21 +237,21 @@ ShaderDecompiler::ProgramResult GenerateFragmentShader(const PicaFSConfig& confi
namespace std {
template <>
struct hash<OpenGL::PicaFSConfig> {
std::size_t operator()(const OpenGL::PicaFSConfig& k) const {
std::size_t operator()(const OpenGL::PicaFSConfig& k) const noexcept {
return k.Hash();
}
};
template <>
struct hash<OpenGL::PicaVSConfig> {
std::size_t operator()(const OpenGL::PicaVSConfig& k) const {
std::size_t operator()(const OpenGL::PicaVSConfig& k) const noexcept {
return k.Hash();
}
};
template <>
struct hash<OpenGL::PicaFixedGSConfig> {
std::size_t operator()(const OpenGL::PicaFixedGSConfig& k) const {
std::size_t operator()(const OpenGL::PicaFixedGSConfig& k) const noexcept {
return k.Hash();
}
};