benilla-re systems structs docs

CGxDeviceD3d::CheckTextureFormat

function · gx · host

Address
0x599350 · 47 bytes, up to 0x59937e
Signature
uint32_t __thiscall (CGxDeviceD3d *this, uint32_t usage, uint32_t format)
Meaning
Returns whether CheckDeviceFormat accepts a texture format for the current display format
Confidence
verified, proof one
Finding
gx/device#capability-block

Finding: Capability block in gx: the device

0x598ee0 fills the block at [dev+0x23c] from the D3DCAPS9 copy at +0x38ac: the first dword is the smaller of MaxSimultaneousTextures and 8, and +0x60, +0x64, +0x68 are the larger of MaxTextureWidth and 256. From +0x2c it holds one flag per GxTex format 0 to 8, set when CheckDeviceFormat accepts that format as a texture for the current display format (0x599350); the formats are the codes at 0x80a100: none, A8R8G8B8, A4R4G4B4, A1R5G5B5, R5G6B5, DXT1, DXT3, DXT5, V8U8. The texture layer reads +0x40, +0x44 and +0x48 as the DXT support flags and +0x60 as the size limit.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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