TextureBuildFromBlp
function · gx · primitive
- Address
0x44a560· 551 bytes, up to0x44a786- Signature
uint32_t __thiscall (void *this)- Meaning
- Opens the record's buffer as BLP, makes the device texture and requests its fill through GxTexUpdateRect
- Confidence
- verified, proof one
- Finding
- gx/textures#texture-file-creation
Finding: Texture file creation in gx: textures
0x449610(path, format, loose) opens path split by 0x449590 with .blp (0x83524c) appended through SFile::OpenEx(0, name, loose != 0, &handle) (storm/mount#loose-files), returns 0 on failure, else allocates a CTexture, sets bit 0x2 of +0x110 for loose, copies the name, stores format at +0x118 and 0 at +0x120, and takes an async record from 0x4438b0: record +0 the file, +8 its size, +0xc the texture, +0x10 the completion callback 0x4497f0. When the file's size fits in what remains of 2 MiB (counter 0xb05d18) the record's buffer is the next slice of the static area at 0x905be4 and 0x443ae0 queues the read; otherwise the record joins the waiting list. 0x44a310 does the same for a name with its extension, callback 0x44a500.
The derivation is in the doc.
Callers 1
Callees 9
- TexturePoolAcquire gx
- TextureLimitSize gx
- TextureChooseFormat gx
- GxDeviceCaps gx
- GxTexUpdateRect gx
- BlpReset image
- BlpHasMips image
- BlpParse image
- BlpDecodeChainShared image
Calls and jumps by a bare address, from tables/calls.tsv.