benilla-re systems structs docs

TextureGetInfo

function · gx · orchestration

Address
0x44b430 · 135 bytes, up to 0x44b4b6
Signature
uint32_t __fastcall (void *texture, uint32_t *w, uint32_t *h, uint32_t *format, uint32_t *typeCode, uint32_t *opaque, uint32_t *alphaBits, uint32_t wait)
Meaning
Returns a texture's size, GxTex format, pixel type code, opaque bit and alpha depth
Confidence
verified, proof one
Finding
gx/textures#texture-readiness-and-info

Finding: Texture readiness and info in gx: textures

0x44ad50 waits for an asynchronous load: it logs AsyncTextureWait(): %s, moves the async record to the pinned list (+0x13c = 1) and waits through 0x443bd0. 0x44ae00(texture, wait) returns the decoded buffer at +0x120, waiting first when it is null and wait is set. 0x44b3b0(texture, &w, &h) returns the width and height at +0x144 and +0x148, 0x44b430 also the format (+0x14c), the pixel type code (+0x118), the opaque bit and the alpha depth. A texture with no device texture and wait clear returns 0. 0x44acf0 is GetTextureDeviceObject.

The derivation is in the doc.

Callers 1

Callees 2

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