CGxDevice::GetCaps
function · gx · orchestration
- Address
0x5923d0· 7 bytes, up to0x5923d6- Signature
void * __thiscall (CGxDevice *this)- Meaning
- Returns this + 0x23c, the capability block
- Confidence
- verified, proof one
- Finding
- gx/device#capability-block
- Test
models::particle_quad_expand_difftest,models::particle_quad_expand_rotated_difftest,models::particle_quad_expand_stretched_difftest,models::particle_quad_expand_tiled_difftest,models::particle_quad_expand_tiled_rotated_difftest
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
- GxDeviceCaps gx
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.