-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Cleanup templates #15494
Conversation
@@ -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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay then.
There was a problem hiding this comment.
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.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
I was learning C++ templates and made these changes. It does not improve anything but makes the code a bit shorter.