Enum ctru::services::gspgpu::FramebufferFormat
source · #[repr(u8)]pub enum FramebufferFormat {
Rgba8 = 0,
Bgr8 = 1,
Rgb565 = 2,
Rgb5A1 = 3,
Rgba4 = 4,
}
Expand description
Framebuffer formats supported by the 3DS’ screens.
Variants§
Rgba8 = 0
RGBA8. 4 bytes per pixel
Bgr8 = 1
BGR8. 3 bytes per pixel
Rgb565 = 2
RGB565. 2 bytes per pixel
Rgb5A1 = 3
RGB5A1. 2 bytes per pixel
Rgba4 = 4
RGBA4. 2 bytes per pixel
Implementations§
source§impl FramebufferFormat
impl FramebufferFormat
sourcepub fn pixel_depth_bytes(&self) -> usize
pub fn pixel_depth_bytes(&self) -> usize
Returns the number of bytes per pixel used by this FramebufferFormat
Trait Implementations§
source§impl Clone for FramebufferFormat
impl Clone for FramebufferFormat
source§fn clone(&self) -> FramebufferFormat
fn clone(&self) -> FramebufferFormat
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FramebufferFormat
impl Debug for FramebufferFormat
source§impl From<FramebufferFormat> for GSPGPU_FramebufferFormat
impl From<FramebufferFormat> for GSPGPU_FramebufferFormat
source§fn from(v: FramebufferFormat) -> Self
fn from(v: FramebufferFormat) -> Self
Converts to this type from the input type.
source§impl From<u8> for FramebufferFormat
impl From<u8> for FramebufferFormat
source§fn from(g: GSPGPU_FramebufferFormat) -> Self
fn from(g: GSPGPU_FramebufferFormat) -> Self
Converts to this type from the input type.
source§impl PartialEq for FramebufferFormat
impl PartialEq for FramebufferFormat
source§fn eq(&self, other: &FramebufferFormat) -> bool
fn eq(&self, other: &FramebufferFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<FramebufferFormat> for OutputFormat
impl TryFrom<FramebufferFormat> for OutputFormat
source§impl TryFrom<OutputFormat> for FramebufferFormat
impl TryFrom<OutputFormat> for FramebufferFormat
impl Copy for FramebufferFormat
impl Eq for FramebufferFormat
impl StructuralPartialEq for FramebufferFormat
Auto Trait Implementations§
impl RefUnwindSafe for FramebufferFormat
impl Send for FramebufferFormat
impl Sync for FramebufferFormat
impl Unpin for FramebufferFormat
impl UnwindSafe for FramebufferFormat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more