Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup templates #15494

Merged
merged 3 commits into from
Apr 21, 2024
Merged

Cleanup templates #15494

merged 3 commits into from
Apr 21, 2024

Conversation

oltolm
Copy link
Contributor

@oltolm oltolm commented Apr 21, 2024

I was learning C++ templates and made these changes. It does not improve anything but makes the code a bit shorter.

@@ -3,6 +3,7 @@
#include <util/types.hpp>
#include "Emu/Cell/lv2/sys_rsx.h"
#include "Emu/RSX/GCM.h"
#include "Emu/RSX/rsx_utils.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the header include additions for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use the clangd extension for VS Code. Sometimes I open a file and it shows errors because includes are missing. So this is specifically for clangd, it does not matter for building.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay then.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this does it increase the memory footprint during builds...

This comment was marked as resolved.

Copy link
Contributor

@elad335 elad335 Apr 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in line 29, there is utils::address_range tile_align(const rsx::address_range& range) const; which is funny and that is why I think it requires rsx_utils.h
use utils:: namespace there instead or add a using statement in this file so it can be dropped.
The other includes seem correct

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah I will merge and fix later.

@@ -1,5 +1,6 @@
#pragma once

#include "Emu/RSX/GL/GLTexture.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@Megamouse Megamouse added Miscellaneous Refactoring Refactors or simplifies existing code labels Apr 21, 2024
@elad335 elad335 self-requested a review April 21, 2024 13:17
@elad335 elad335 merged commit 862727e into RPCS3:master Apr 21, 2024
6 checks passed
@oltolm oltolm deleted the cleanup_templates branch April 21, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Miscellaneous Refactoring Refactors or simplifies existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants