benilla-re systems structs docs

GxTexCreate2D

function · gx · host

Address
0x58aa30 · 185 bytes, up to 0x58aae8
Signature
void * __fastcall (uint32_t w, uint32_t h, uint32_t format, uint32_t flags, void *owner, void *callback, void **out)
Meaning
Checks a 2D texture request against the device caps and creates it through slot +0xb8, or fails with 0x57
Confidence
verified, proof one
Finding
gx/texturesize#texture-create-checks

Finding: Texture create checks in gx: texture sizes and formats

GxTexCreate(type, w, h, arg4, format, dataFormat, flags, owner, callback, &out) (0x58ab10) sets out to 0 and either calls the device's slot +0xb4 or sets Storm error 0x57 and returns 0. For type 0 it refuses when the device does not report the type (caps + 0x50 is not 1), a side is below 8 or above caps + 0x60, a side is not a power of two, format or dataFormat is above 9 (signed), bit 6 of the flags is set while caps + 0x28 is 0 or format is 5 to 7, the filter mode is 5 while caps + 0xa8 is 0, or the callback is null.

The derivation is in the doc.

Callers 12

Callees 2

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