CGxDeviceD3d::CreateTexture
function · gx · orchestration
- Address
0x5a0810· 52 bytes, up to0x5a0843- Signature
uint32_t __thiscall (CGxDeviceD3d *this, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, uint32_t arg8, uint32_t arg9, uint32_t arg10, void *outHandle)- Meaning
- Forwards its ten arguments to the base texture record creation
- Confidence
- verified, proof one
- Finding
- gx/textures#device-texture-record
Finding: Device texture record in gx: textures
0x594a80 (CGxDevice::CreateTexture, reached by through the Direct3D forwarder 0x5a0810) allocates a 0x54-byte record with SMemAlloc (CGxDevice.cpp line 0x86b), constructs it from its nine arguments (0x5915a0, which builds the flags at +0x3c), returns it through the last argument, links it into the device's texture list (head at [dev+0x2838]), adds 1 to the count at [dev+0x84] and adds the record's byte size to [dev+0x88]. 0x594ce0(record, width, height) returns that size: the top kept level (width and height shifted right by the skip count [dev+0x31c]) as blocks of the format's edge ceil(w / e) * ceil(h / e) * bytes, plus each smaller level down to 1 by 1 when the flags' low three bits exceed 1.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.