mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
TextureCache: Rename functions and add comments to clear up docs
This commit is contained in:
parent
94eaacae30
commit
96ab76f81d
2 changed files with 34 additions and 26 deletions
|
@ -98,17 +98,24 @@ public:
|
|||
// This texture entry is used by the other entry as a sub-texture
|
||||
void CreateReference(TCacheEntryBase* other_entry)
|
||||
{
|
||||
// References are two-way, so they can easily be destroyed later
|
||||
this->references.emplace(other_entry);
|
||||
other_entry->references.emplace(this);
|
||||
}
|
||||
|
||||
void DestroyAllReferences()
|
||||
{
|
||||
for (auto& reference : references)
|
||||
reference->references.erase(this);
|
||||
|
||||
references.clear();
|
||||
}
|
||||
|
||||
void SetEfbCopy(u32 stride);
|
||||
void Reset(); // Prepare for reuse
|
||||
|
||||
TCacheEntryBase(const TCacheEntryConfig& c) : config(c) {}
|
||||
virtual ~TCacheEntryBase();
|
||||
|
||||
|
||||
virtual void Bind(unsigned int stage) = 0;
|
||||
virtual bool Save(const std::string& filename, unsigned int level) = 0;
|
||||
|
||||
|
@ -179,7 +186,9 @@ private:
|
|||
|
||||
static TCacheEntryBase* AllocateTexture(const TCacheEntryConfig& config);
|
||||
static TexCache::iterator GetTexCacheIter(TCacheEntryBase* entry);
|
||||
static TexCache::iterator FreeTexture(TexCache::iterator t_iter);
|
||||
|
||||
// Removes and unlinks texture from texture cache and returns it to the pool
|
||||
static TexCache::iterator InvalidateTexture(TexCache::iterator t_iter);
|
||||
|
||||
static TCacheEntryBase* ReturnEntry(unsigned int stage, TCacheEntryBase* entry);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue