TextureCacheGet
function · gx · orchestration
- Address
0x47ae30· 453 bytes, up to0x47aff4- Signature
void * __fastcall (const char *name, uint32_t flags)- Meaning
- Returns the cache entry of a texture file name, creating it when absent, and adds one to its count
- Confidence
- verified, proof one
- Finding
- gx/textures#texture-cache
- Test
charactermodel::cm_fanout_h_hashtable_bucket
Finding: Texture cache in gx: textures
0x47ae30(name, flags) returns a cache entry for a texture file name, creating it on a miss and adding 1 to its count at +0xbc. An entry is 0xc8 bytes from an object heap (0x47aca0 makes it on first use with 0x463920(size 0xc8, count 0x400), which stores the size at +0x10 and the count at +0x14), keyed by the hash of the name (0x64af90), name at +0x38 (127 bytes), texture handle at +0x18, a failed-load mark at +0xc4. 0x47b0c0 loads it through 0x47ac10, which tries 0x449610 on the name and again on the alternate name of 0x44b320, marking +0xc4 on failure. 0x47b010 subtracts 1 and frees the entry at 0 or less.
The derivation is in the doc.
Callers 4
- BuildSectionTexture charactermodel
- MakeSectionCell charactermodel
- SetCharacterSkinColor charactermodel
- SetCharacterComponentEmblem charactermodel
Callees 8
- TextureCacheEntryAlloc gx
- 0x47b5c0 gx
- 0x47b6f0 gx
- 0x47b710 gx
- 0x47b7d0 gx
- 0x47bab0 gx
- SStrCopy storm
- SStrHash storm
Calls and jumps by a bare address, from tables/calls.tsv.