mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #3580 from daniellimws/common-fmt
common: Migrate logging macros
This commit is contained in:
		
						commit
						a9544ca015
					
				
					 24 changed files with 132 additions and 134 deletions
				
			
		|  | @ -265,7 +265,7 @@ struct FramebufferRegs { | |||
|             return 4; | ||||
|         } | ||||
| 
 | ||||
|         ASSERT_MSG(false, "Unknown depth format %u", static_cast<u32>(format)); | ||||
|         ASSERT_MSG(false, "Unknown depth format {}", static_cast<u32>(format)); | ||||
|     } | ||||
| 
 | ||||
|     // Returns the number of bits per depth component of the specified depth format
 | ||||
|  | @ -278,7 +278,7 @@ struct FramebufferRegs { | |||
|             return 24; | ||||
|         } | ||||
| 
 | ||||
|         ASSERT_MSG(false, "Unknown depth format %u", static_cast<u32>(format)); | ||||
|         ASSERT_MSG(false, "Unknown depth format {}", static_cast<u32>(format)); | ||||
|     } | ||||
| 
 | ||||
|     INSERT_PADDING_WORDS(0x10); // Gas related registers
 | ||||
|  |  | |||
|  | @ -1308,7 +1308,7 @@ void RasterizerOpenGL::SetShader() { | |||
|             glGetActiveUniformBlockiv(current_shader->shader.handle, block_index, | ||||
|                                       GL_UNIFORM_BLOCK_DATA_SIZE, &block_size); | ||||
|             ASSERT_MSG(block_size == sizeof(UniformData), | ||||
|                        "Uniform block size did not match! Got %d, expected %zu", | ||||
|                        "Uniform block size did not match! Got {}, expected {}", | ||||
|                        static_cast<int>(block_size), sizeof(UniformData)); | ||||
|             glUniformBlockBinding(current_shader->shader.handle, block_index, 0); | ||||
|         } | ||||
|  |  | |||
|  | @ -2,7 +2,6 @@ | |||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <cinttypes> | ||||
| #include <cmath> | ||||
| #include <cstring> | ||||
| #include "common/bit_set.h" | ||||
|  | @ -30,7 +29,7 @@ void OutputVertex::ValidateSemantics(const RasterizerRegs& regs) { | |||
|         for (size_t comp = 0; comp < 4; ++comp) { | ||||
|             u32 semantic = (output_register_map >> (8 * comp)) & 0x1F; | ||||
|             ASSERT_MSG(semantic < 24 || semantic == RasterizerRegs::VSOutputAttributes::INVALID, | ||||
|                        "Invalid/unknown semantic id: %" PRIu32, semantic); | ||||
|                        "Invalid/unknown semantic id: {}", semantic); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue