Struct smithay::backend::egl::display::PixelFormat [−][src]
pub struct PixelFormat { pub hardware_accelerated: bool, pub color_bits: u8, pub alpha_bits: u8, pub depth_bits: u8, pub stencil_bits: u8, pub stereoscopy: bool, pub multisampling: Option<u16>, pub srgb: bool, }
Expand description
Describes the pixel format of a framebuffer
Fields
hardware_accelerated: bool
is the format hardware accelerated
color_bits: u8
number of bits used for colors
alpha_bits: u8
number of bits used for alpha channel
depth_bits: u8
number of bits used for depth channel
stencil_bits: u8
number of bits used for stencil buffer
stereoscopy: bool
is stereoscopy enabled
multisampling: Option<u16>
number of samples used for multisampling if enabled
srgb: bool
is srgb enabled
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V