TexturePoolAcquire
function · gx · primitive
- Address
0x448450· 544 bytes, up to0x44866f- Signature
void * __fastcall (uint32_t width, uint32_t height, uint32_t format, uint32_t flags, void *owner, void *callback, uint32_t typeCode)- Meaning
- Returns a pooled or new device texture for a request, or 0 for a side that is not a power of two or is 1024 or more
- Confidence
- verified, proof one
- Finding
- gx/texturesize#texture-request-routes
- Test
gx::texture_pool_route_difftest
Finding: Texture request routes in gx: texture sizes and formats
0x448450(width, height, format, flags, owner, callback, typeCode) returns a device texture, or 0. A width or height that is not a power of two (0 counts as one) or is 1024 or more returns 0 at 0x448665: no texture, no Storm error, no log. A side of 16 or less, or a format above 7 (a signed compare), makes a new texture through GxTexCreate. Otherwise both sides are 32 to 512 and the request takes the pool. format is the device texture's GxTex format; typeCode is the type of the data the callback supplies, mapped by 0x835258 to the data format. The flags reach the device with bit 6 cleared.
The derivation is in the doc.
Callers 7
- TextureCreateBlank gx
- TextureCreateWithCallback gx
- TextureCreateNamedBlank gx
- TextureCreateFromTga gx
- TextureBuildFromBlp gx
- TextureFillSolid gx
- CreateD3dDevice gx
Callees 7
- 0x44c490 gx
- CGxTexFlags::CGxTexFlags gx
- GxTexCreateFromDesc gx
- GxTexSetCallback gx
- GxTexSetFlags gx
- GxTexGetDesc gx
- GxTexSetDataFormat gx
Calls and jumps by a bare address, from tables/calls.tsv.