mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									d23ffe9b42
								
							
						
					
					
						commit
						f20120e5a7
					
				
					 2 changed files with 9 additions and 9 deletions
				
			
		|  | @ -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(); | ||||
|     } | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue