pub enum MsdfPixelFormat {
Rgba8,
PackedRgb8,
}Variants§
Rgba8
32 bits per pixel, RGBA format, with unused alpha channel. Useful for directly uploading to GPU.
PackedRgb8
24 bits per pixel, 8 bits for RGB channels. Useful for outputting to images.
Implementations§
Trait Implementations§
Source§impl Clone for MsdfPixelFormat
impl Clone for MsdfPixelFormat
Source§fn clone(&self) -> MsdfPixelFormat
fn clone(&self) -> MsdfPixelFormat
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 MsdfPixelFormat
Source§impl Debug for MsdfPixelFormat
impl Debug for MsdfPixelFormat
Source§impl Default for MsdfPixelFormat
impl Default for MsdfPixelFormat
Source§fn default() -> MsdfPixelFormat
fn default() -> MsdfPixelFormat
Returns the “default value” for a type. Read more
impl Eq for MsdfPixelFormat
Source§impl PartialEq for MsdfPixelFormat
impl PartialEq for MsdfPixelFormat
Source§fn eq(&self, other: &MsdfPixelFormat) -> bool
fn eq(&self, other: &MsdfPixelFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MsdfPixelFormat
Auto Trait Implementations§
impl Freeze for MsdfPixelFormat
impl RefUnwindSafe for MsdfPixelFormat
impl Send for MsdfPixelFormat
impl Sync for MsdfPixelFormat
impl Unpin for MsdfPixelFormat
impl UnsafeUnpin for MsdfPixelFormat
impl UnwindSafe for MsdfPixelFormat
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