mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	general: Convert assertion macros over to be fmt-compatible
This commit is contained in:
		@@ -168,7 +168,7 @@ void Maxwell3D::ProcessQueryGet() {
 | 
			
		||||
        result = 0;
 | 
			
		||||
        break;
 | 
			
		||||
    default:
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented query select type %u",
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented query select type {}",
 | 
			
		||||
                          static_cast<u32>(regs.query.query_get.select.Value()));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -186,7 +186,7 @@ void Maxwell3D::ProcessQueryGet() {
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
    default:
 | 
			
		||||
        UNIMPLEMENTED_MSG("Query mode %u not implemented",
 | 
			
		||||
        UNIMPLEMENTED_MSG("Query mode {} not implemented",
 | 
			
		||||
                          static_cast<u32>(regs.query.query_get.mode.Value()));
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
 | 
			
		||||
    case RenderTargetFormat::RGB10_A2_UNORM:
 | 
			
		||||
        return 4;
 | 
			
		||||
    default:
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented render target format %u", static_cast<u32>(format));
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented render target format {}", static_cast<u32>(format));
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -113,7 +113,7 @@ bool MacroInterpreter::Step(const std::vector<u32>& code, bool is_delay_slot) {
 | 
			
		||||
        break;
 | 
			
		||||
    }
 | 
			
		||||
    default:
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented macro operation %u",
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented macro operation {}",
 | 
			
		||||
                          static_cast<u32>(opcode.operation.Value()));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -154,7 +154,7 @@ u32 MacroInterpreter::GetALUResult(ALUOperation operation, u32 src_a, u32 src_b)
 | 
			
		||||
        return ~(src_a & src_b);
 | 
			
		||||
 | 
			
		||||
    default:
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented ALU operation %u", static_cast<u32>(operation));
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented ALU operation {}", static_cast<u32>(operation));
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -201,7 +201,7 @@ void MacroInterpreter::ProcessResult(ResultOperation operation, u32 reg, u32 res
 | 
			
		||||
        Send((result >> 12) & 0b111111);
 | 
			
		||||
        break;
 | 
			
		||||
    default:
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented result operation %u", static_cast<u32>(operation));
 | 
			
		||||
        UNIMPLEMENTED_MSG("Unimplemented result operation {}", static_cast<u32>(operation));
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@ void SetShaderUniformBlockBinding(GLuint shader, const char* name,
 | 
			
		||||
        GLint ub_size = 0;
 | 
			
		||||
        glGetActiveUniformBlockiv(shader, ub_index, GL_UNIFORM_BLOCK_DATA_SIZE, &ub_size);
 | 
			
		||||
        ASSERT_MSG(ub_size == expected_size,
 | 
			
		||||
                   "Uniform block size did not match! Got %d, expected %zu",
 | 
			
		||||
                   "Uniform block size did not match! Got {}, expected {}",
 | 
			
		||||
                   static_cast<int>(ub_size), expected_size);
 | 
			
		||||
        glUniformBlockBinding(shader, ub_index, static_cast<GLuint>(binding));
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user