GXTexObj
Jump to navigation
Jump to search
GXTexObj
struct __gx_texobj { u32 tex_filt; u32 tex_lod; u32 tex_size; u32 tex_maddr; u32 usr_data; u32 tex_fmt; u32 tex_tlut; u16 tex_tile_cnt; u8 tex_tile_type; u8 tex_flag; } __attribute__((packed));
tex_filt
Bits | Description |
---|---|
0-1 | wrap_s |
2-3 | wrap_t |
4 | magfilt |
5-7 | minfilt |
8 | edgelod |
9-15 | LOD Bias |
16-17 | maxansio |
18 | biasclamp |
19-23 | Padding |
24-31 | texmode0id |
tex_lod
Bits | Description |
---|---|
0-8 | Minimum LOD |
9-15 | Maximum LOD |
16-23 | Padding |
24-31 | texmode1id |
tex_size
Bits | Description |
---|---|
0-9 | Texture Width |
10-19 | Texture Height |
20-23 | Texture Size Format |
24-31 | teximg0id |
tex_maddr
Bits | Description |
---|---|
0-23 | Memory Address |
24-31 | teximg3id |
usr_data
Bits | Description |
---|---|
0-31 | User Data |
tex_fmt
Bits | Description |
---|---|
0-3 | Texture format |
4-31 | Unknown/Padding |
tex_tlut
Bits | Description |
---|---|
0-31 | Texture lookup table |
tex_tile_cnt
Bits | Description |
---|---|
0-14 | Tile count |
15 | Unknown/Padding |
tex_tile_type
Bits | Description |
---|---|
0-1 | Type of tile |
2-31 | Padding |
tex_flag
Bits | Description |
---|---|
0 | Use mipmap |
1 | Use tlut |
2-7 | Padding |