benilla-re systems structs docs

GxTexUpdateRect

function · gx · orchestration

Address
0x58ac70 · 62 bytes, up to 0x58acad
Signature
void __fastcall (void *texture, uint32_t b, uint32_t a, uint32_t d, uint32_t c, uint32_t flag)
Meaning
Packs the rectangle (a, b, c, d) and marks it dirty on the device, uploading at once when flag is set
Confidence
verified, proof one
Finding
charactermodel/component#composite-without-a-skin

Finding: Composite without a skin in charactermodel: component

For an in-range race with a skin variation 0 and a colour outside its count, and +0x3c clear, the next update still composites. It creates the target, binds it as type 1 and runs all ten handlers, which skip the null skin, underwear, face and hair cells and blit only item cells into 0xb422d8, the one buffer every component uses, which nothing clears. The upload copies all of it, so the body shows earlier composites' leftovers, another character's skin, face and clothes, under its own items. Types 6 and 8 stay unbound. With +0x3c set, only on the unit's extra-row path, the update picks geosets alone and nothing binds type 1.

The derivation is in the doc.

Callers 12

Callees 2

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