benilla-re systems structs docs

CGxDeviceD3d::FillCaps

function · gx · primitive

Address
0x598ee0 · 956 bytes, up to 0x59929b
Signature
void __thiscall (CGxDeviceD3d *this)
Meaning
Fills the capability block from the D3DCAPS9 copy and from CheckDeviceFormat probes
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 1

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