pub struct ExAttribute {
pub palette: u8,
pub chr_bank: u16,
}Expand description
Per-tile extended-attribute / extended-bank info supplied by mappers that
implement an extended attribute mode (currently MMC5 in $5104 mode 01).
The PPU consults this at the nametable-byte fetch boundary of each BG
tile. When Some, the PPU:
- Replaces the standard 2-bit attribute-derived palette with
Self::palette. - Routes the BG pattern fetch for that tile through
Self::chr_bank(a 12-bit physical 4 KiB bank index — see MMC5ExGrafixmode docs).
Fields§
§palette: u82-bit palette select (replaces the AT-byte palette).
chr_bank: u1612-bit physical CHR bank for this tile (in 4 KiB units). Combined with the fine-Y / column offset by the mapper at fetch time.
Trait Implementations§
Source§impl Clone for ExAttribute
impl Clone for ExAttribute
Source§fn clone(&self) -> ExAttribute
fn clone(&self) -> ExAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExAttribute
Source§impl Debug for ExAttribute
impl Debug for ExAttribute
impl Eq for ExAttribute
Source§impl PartialEq for ExAttribute
impl PartialEq for ExAttribute
impl StructuralPartialEq for ExAttribute
Auto Trait Implementations§
impl Freeze for ExAttribute
impl RefUnwindSafe for ExAttribute
impl Send for ExAttribute
impl Sync for ExAttribute
impl Unpin for ExAttribute
impl UnsafeUnpin for ExAttribute
impl UnwindSafe for ExAttribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more