benilla-re systems structs docs

TextureCacheEntryAlloc

function · gx · orchestration

Address
0x47aca0 · 197 bytes, up to 0x47ad64
Signature
void * __cdecl ()
Meaning
Takes a 0xc8-byte cache entry from an object heap of 0x400 entries, creating the heap on first use
Confidence
verified, proof one
Finding
gx/textures#texture-cache

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 1

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.