s_d3dFormatCodes
global · gx
- Address
0x809ec0· 40 bytes, up to0x809ee7- Type
uint32_t[10]- Meaning
- Holds D3DFMT codes by index: R5G6B5, X8R8G8B8, A8R8G8B8, A2R10G10B10, then depth D16, D24X8, D24S8, D32, and 4, 8
- Confidence
- verified, proof one
- Finding
- gx/device#present-parameters
Finding: Present parameters in gx: the device
0x599790(out, format) builds the D3DPRESENT_PARAMETERS. Windowed (format byte +7 set): width and height are the window's float size converted with __ftol, the back buffer format is the desktop's, refresh 0. Full screen: width format+0x10, height format+0x14, back buffer format 0x809ec0[format+0x24], refresh format+0x28. Always: swap effect discard (1), the window at +0x3894, auto depth stencil on with the depth format 0x809ec0[format+0xc], back buffer count format+0x18 when byte +0x2c is set and 1 otherwise, and presentation interval 1 with that byte set, immediate (0x80000000) otherwise.
The derivation is in the doc.