pub enum GpuAtlasPixelFormat {
R8Unorm,
Rgba8Unorm,
}Expand description
Pixel storage format for GPU atlas and image dirty-rect texture uploads.
Variants§
R8Unorm
Single-channel 8-bit coverage mask used for monochrome alpha glyph atlases (R8Unorm).
Rgba8Unorm
Four-channel 8-bit premultiplied RGBA texture used for color emoji atlases and images (Rgba8Unorm).
Trait Implementations§
Source§impl Clone for GpuAtlasPixelFormat
impl Clone for GpuAtlasPixelFormat
impl Copy for GpuAtlasPixelFormat
Source§impl Debug for GpuAtlasPixelFormat
impl Debug for GpuAtlasPixelFormat
Source§impl Default for GpuAtlasPixelFormat
impl Default for GpuAtlasPixelFormat
impl Eq for GpuAtlasPixelFormat
Source§impl Hash for GpuAtlasPixelFormat
impl Hash for GpuAtlasPixelFormat
Source§impl Ord for GpuAtlasPixelFormat
impl Ord for GpuAtlasPixelFormat
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GpuAtlasPixelFormat
impl PartialEq for GpuAtlasPixelFormat
Source§impl PartialOrd for GpuAtlasPixelFormat
impl PartialOrd for GpuAtlasPixelFormat
impl StructuralPartialEq for GpuAtlasPixelFormat
Auto Trait Implementations§
impl Forget for GpuAtlasPixelFormat
impl Freeze for GpuAtlasPixelFormat
impl Move for GpuAtlasPixelFormat
impl RefUnwindSafe for GpuAtlasPixelFormat
impl Send for GpuAtlasPixelFormat
impl Sync for GpuAtlasPixelFormat
impl Unpin for GpuAtlasPixelFormat
impl UnsafeUnpin for GpuAtlasPixelFormat
impl UnwindSafe for GpuAtlasPixelFormat
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