CGxDevice::InferAdapterClass
function · gx · host
- Address
0x58bc90· 168 bytes, up to0x58bd37- Signature
uint32_t __thiscall (CGxDevice *this)- Meaning
- Writes adapter class 2, 1 or 0 from the hardware transform, texture count and pixel shader caps
- Confidence
- verified, proof one
- Finding
- gx/device#adapter-class
Finding: Adapter class in gx: the device
0x58bc90(out) loads Direct3D, calls IDirect3D9::GetDeviceCaps for adapter 0 and stores a class in the word at out: 2 when the device has hardware transform and light (DevCaps & 0x10000), more than 2 simultaneous textures and a pixel shader version of 1.1 or more; 1 when it has hardware transform and light and 2 or more textures; otherwise 0. It returns 1 when the caps call succeeded, and logs CGxDevice::DeviceAdapterInfer(): RET: %d, DID: %x.
The derivation is in the doc.
Callers 1
Callees 3
- GxLogIfOpen gx
- CGxDeviceD3d::LoadD3d gx
- 0x598eb0 gx
Calls and jumps by a bare address, from tables/calls.tsv.