benilla-re systems structs docs

CGxTexFlags::CGxTexFlags

function · gx · primitive

Address
0x58a980 · 164 bytes, up to 0x58aa23
Signature
void * __thiscall (CGxTexFlags *this, uint32_t filter, uint32_t wrapU, uint32_t wrapV, uint32_t b5, uint32_t b6, uint32_t b7, uint32_t aniso, uint32_t b8)
Meaning
Packs filter, wrap, flag and anisotropy arguments into a texture flags word, capping anisotropy at the device maximum
Confidence
verified, proof one
Name from
the community database (idb)
Finding
gx/textures#texture-flags-word

Finding: Texture flags word in gx: textures

0x449ae0(out, force, in) writes out = in, except that when force is non-zero the low three bits (the filter mode) are replaced by the global [0x835250]; then, when the resulting mode is 5, bits 9 to 13 are replaced by [0x835254], otherwise by 1. 0x449ac0 and 0x449ad0 store [0x835250] and [0x835254]; their static defaults are 3 and 1. The word is the GxTex flags: bits 0 to 2 filter mode, bit 3 wrap in U, bit 4 wrap in V, bit 6 generate mip maps, bits 9 to 13 maximum anisotropy.

The derivation is in the doc.

Callers 76

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.