pub enum PixelStorageMode {
UnpackFlipYWebgl = 37_440,
UnpackPremultiplyAlphaWebgl = 37_441,
UnpackColorspaceConversionWebgl = 37_443,
PackAlignment = 3_333,
UnpackAlignment = 3_317,
}
Expand description
Constants passed to WebGLRenderingContext.hint()
Variants§
UnpackFlipYWebgl = 37_440
UnpackPremultiplyAlphaWebgl = 37_441
UnpackColorspaceConversionWebgl = 37_443
PackAlignment = 3_333
Packing of pixel data into memory. Can be 1, 2, 4, 8 defaults to 4
UnpackAlignment = 3_317
Unpacking of pixel data from memory Can be 1, 2, 4, 8 defaults to 4
Trait Implementations§
Source§impl Clone for PixelStorageMode
impl Clone for PixelStorageMode
Source§fn clone(&self) -> PixelStorageMode
fn clone(&self) -> PixelStorageMode
Returns a copy 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 PixelStorageMode
impl Debug for PixelStorageMode
impl Copy for PixelStorageMode
Auto Trait Implementations§
impl Freeze for PixelStorageMode
impl RefUnwindSafe for PixelStorageMode
impl Send for PixelStorageMode
impl Sync for PixelStorageMode
impl Unpin for PixelStorageMode
impl UnwindSafe for PixelStorageMode
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