pub struct TileDescriptor {}Expand description
One of the RDP’s eight tile descriptors.
The format/size/addressing state that binds a region of TMEM to a texture,
set by Set Tile (0x35) and sized by Set Tile Size (0x32) / the load
commands. All fields are decoded straight from the command word (N64brew
…/Commands §0x35/§0x32).
Fields§
§format: u8Texel format: RGBA=0, YUV=1, CI=2, IA=3, I=4 (Set Tile bits 55:53).
size: u8Texel size code: 4bpp=0, 8bpp=1, 16bpp=2, 32bpp=3 (bits 52:51).
line: u16Row stride in 64-bit TMEM words (bits 49:41).
tmem_addr: u16Base TMEM address in 64-bit words (bits 40:32); word 0x100 = byte 0x800.
palette: u8Palette index, the high half of the TLUT address for CI4 tiles only (bits 23:20).
clamp_t: boolClamp T when sampling outside the tile (bit 19).
mirror_t: boolMirror T on every other wrap (bit 18).
mask_t: u8Number of T integer-coordinate bits used for wrap; 0 = all (bits 17:14).
shift_t: u8T coordinate shift code, per the shift table (bits 13:10).
clamp_s: boolClamp S when sampling outside the tile (bit 9).
mirror_s: boolMirror S on every other wrap (bit 8).
mask_s: u8Number of S integer-coordinate bits used for wrap; 0 = all (bits 7:4).
shift_s: u8S coordinate shift code, per the shift table (bits 3:0).
sl: u16Tile-size upper-left S (u10.2), from Set Tile Size / the loaders.
tl: u16Tile-size upper-left T (u10.2).
sh: u16Tile-size lower-right S (u10.2).
th: u16Tile-size lower-right T (u10.2).
Trait Implementations§
Source§impl Clone for TileDescriptor
impl Clone for TileDescriptor
Source§fn clone(&self) -> TileDescriptor
fn clone(&self) -> TileDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more