s_d3dTextureFormatCodes
global · gx
- Address
0x80a100· 48 bytes, up to0x80a12f- Type
uint32_t[12]- Meaning
- Holds the D3DFMT code of each GxTex format 0 to 8: none, A8R8G8B8, A4R4G4B4, A1R5G5B5, R5G6B5, DXT1, DXT3, DXT5, V8U8
- 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.