pub enum PixelLayer {
Backdrop,
Background,
Sprite,
}Expand description
Which layer won the priority decision at a pixel.
Variants§
Backdrop
Neither layer was opaque: the universal backdrop ($3F00), or the
palette-address override the PPU applies when rendering is disabled with
v pointing into palette space.
Background
The background pattern won.
Sprite
A sprite won — either because the background pixel was transparent or because the sprite had front priority.
Trait Implementations§
Source§impl Clone for PixelLayer
impl Clone for PixelLayer
Source§fn clone(&self) -> PixelLayer
fn clone(&self) -> PixelLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PixelLayer
impl Debug for PixelLayer
Source§impl Default for PixelLayer
impl Default for PixelLayer
Source§fn default() -> PixelLayer
fn default() -> PixelLayer
Returns the “default value” for a type. Read more
Source§impl Hash for PixelLayer
impl Hash for PixelLayer
Source§impl PartialEq for PixelLayer
impl PartialEq for PixelLayer
impl Copy for PixelLayer
impl Eq for PixelLayer
impl StructuralPartialEq for PixelLayer
Auto Trait Implementations§
impl Freeze for PixelLayer
impl RefUnwindSafe for PixelLayer
impl Send for PixelLayer
impl Sync for PixelLayer
impl Unpin for PixelLayer
impl UnsafeUnpin for PixelLayer
impl UnwindSafe for PixelLayer
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