Enum webgl_rs::glenum::PixelStorageMode
source · pub enum PixelStorageMode {
Show 13 variants
UnpackFlipYWebgl,
UnpackPremultiplyAlphaWebgl,
UnpackColorspaceConversionWebgl,
PackAlignment,
UnpackAlignment,
PackRowLength,
PackSkipPixels,
PackSkipRows,
UnpackRowLength,
UnpackImageHeight,
UnpackSkipPixels,
UnpackSkipRows,
UnpackSkipImages,
}
Expand description
Constants passed to WebGLRenderingContext.pixelStorei()
Variants§
UnpackFlipYWebgl
UnpackPremultiplyAlphaWebgl
UnpackColorspaceConversionWebgl
PackAlignment
Packing of pixel data into memory. Can be 1, 2, 4, 8 defaults to 4
UnpackAlignment
Unpacking of pixel data from memory Can be 1, 2, 4, 8 defaults to 4
PackRowLength
Number of pixels in a row.
PackSkipPixels
Number of pixel locations skipped before the first pixel is written into memory.
PackSkipRows
Number of rows of pixel locations skipped before the first pixel is written into memory
UnpackRowLength
Number of pixels in a row.
UnpackImageHeight
Image height used for reading pixel data from memory
UnpackSkipPixels
Number of pixel images skipped before the first pixel is read from memory
UnpackSkipRows
Number of rows of pixel locations skipped before the first pixel is read from memory
UnpackSkipImages
Number of pixel images skipped before the first pixel is read from memory
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
source§impl FromWasmAbi for PixelStorageMode
impl FromWasmAbi for PixelStorageMode
source§impl IntoWasmAbi for PixelStorageMode
impl IntoWasmAbi for PixelStorageMode
source§impl OptionFromWasmAbi for PixelStorageMode
impl OptionFromWasmAbi for PixelStorageMode
source§impl OptionIntoWasmAbi for PixelStorageMode
impl OptionIntoWasmAbi for PixelStorageMode
impl Copy for PixelStorageMode
Auto Trait Implementations§
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more