TextureCacheBase: Add m_ prefix to member variables

This commit is contained in:
Dentomologist
2023-09-01 22:50:48 -07:00
parent 5e5887a378
commit d5d3eb5025
2 changed files with 117 additions and 117 deletions

View File

@ -138,7 +138,7 @@ struct TCacheEntry
u64 id = 0;
u32 content_semaphore = 0; // Counts up
// Indicates that this TCacheEntry has been invalided from textures_by_address
// Indicates that this TCacheEntry has been invalided from m_textures_by_address
bool invalidated = false;
bool reference_changed = false; // used by xfb to determine when a reference xfb changed
@ -151,7 +151,7 @@ struct TCacheEntry
// used to delete textures which haven't been used for TEXTURE_KILL_THRESHOLD frames
int frameCount = FRAMECOUNT_INVALID;
// Keep an iterator to the entry in textures_by_hash, so it does not need to be searched when
// Keep an iterator to the entry in m_textures_by_hash, so it does not need to be searched when
// removing the cache entry
std::multimap<u64, std::shared_ptr<TCacheEntry>>::iterator textures_by_hash_iter;
@ -330,8 +330,8 @@ protected:
float gamma, bool clamp_top, bool clamp_bottom,
const std::array<u32, 3>& filter_coefficients);
alignas(16) u8* temp = nullptr;
size_t temp_size = 0;
alignas(16) u8* m_temp = nullptr;
size_t m_temp_size = 0;
private:
using TexAddrCache = std::multimap<u32, RcTcacheEntry>;
@ -405,20 +405,20 @@ private:
void DoSaveState(PointerWrap& p);
void DoLoadState(PointerWrap& p);
// textures_by_address is the authoritive version of what's actually "in" the texture cache
// m_textures_by_address is the authoritive version of what's actually "in" the texture cache
// but it's possible for invalidated TCache entries to live on elsewhere
TexAddrCache textures_by_address;
TexAddrCache m_textures_by_address;
// textures_by_hash is an alternative view of the texture cache
// All textures in here will also be in textures_by_address
TexHashCache textures_by_hash;
// m_textures_by_hash is an alternative view of the texture cache
// All textures in here will also be in m_textures_by_address
TexHashCache m_textures_by_hash;
// bound_textures are actually active in the current draw
// m_bound_textures are actually active in the current draw
// It's valid for textures to be in here after they've been invalidated
std::array<RcTcacheEntry, 8> bound_textures{};
std::array<RcTcacheEntry, 8> m_bound_textures{};
TexPool texture_pool;
u64 last_entry_id = 0;
TexPool m_texture_pool;
u64 m_last_entry_id = 0;
// Backup configuration values
struct BackupConfig
@ -437,7 +437,7 @@ private:
bool graphics_mods;
u32 graphics_mod_change_count;
};
BackupConfig backup_config = {};
BackupConfig m_backup_config = {};
// Encoding texture used for EFB copies to RAM.
std::unique_ptr<AbstractTexture> m_efb_encoding_texture;