CGxDeviceD3d::FlushTextureTransform
function · gx · primitive
- Address
0x5a14e0· 416 bytes, up to0x5a167f- Signature
void __thiscall (CGxDeviceD3d *this, uint32_t stage)- Meaning
- Sets the Direct3D transform and transform flags of a stage from the kind in state 0x37 plus the stage
- Confidence
- verified, proof one
- Finding
- gx/renderstate#texture-transform-kinds
Finding: Texture transform kinds in gx: render state
The device sets a stage's transform from the state 0x37 + stage, its kind. Kind 0 passes the
stage's mode matrix to SetTransform and sets TEXTURETRANSFORMFLAGS to 0 when the matrix's level
is marked identity, else 3 (D3DTTFF_COUNT3: three coordinates out, of which a 2D texture reads u
and v). Kinds 1 and 2 combine the stage's user matrix, which 0x58b240 stores at +0xfd0 + 0x118·stage, with the mode matrix and set the flags 3 and 0x103 (COUNT3 | PROJECTED, which
divides by the third). Kind 0 never reads the user matrix.
The derivation is in the doc.
Callers 1
- 0x5a1e70 gx
Callees 4
Calls and jumps by a bare address, from tables/calls.tsv.