pub enum PixelStorageMode {
Show 13 variants
UnpackFlipYWebgl = 37_440,
UnpackPremultiplyAlphaWebgl = 37_441,
UnpackColorspaceConversionWebgl = 37_443,
PackAlignment = 3_333,
UnpackAlignment = 3_317,
PackRowLength = 3_330,
PackSkipPixels = 3_332,
PackSkipRows = 3_331,
UnpackRowLength = 3_314,
UnpackImageHeight = 32_878,
UnpackSkipPixels = 3_316,
UnpackSkipRows = 3_315,
UnpackSkipImages = 32_877,
}
Expand description
Constants passed to WebGLRenderingContext.pixelStorei()
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
PackRowLength = 3_330
Number of pixels in a row.
PackSkipPixels = 3_332
Number of pixel locations skipped before the first pixel is written into memory.
PackSkipRows = 3_331
Number of rows of pixel locations skipped before the first pixel is written into memory
UnpackRowLength = 3_314
Number of pixels in a row.
UnpackImageHeight = 32_878
Image height used for reading pixel data from memory
UnpackSkipPixels = 3_316
Number of pixel images skipped before the first pixel is read from memory
UnpackSkipRows = 3_315
Number of rows of pixel locations skipped before the first pixel is read from memory
UnpackSkipImages = 32_877
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PixelStorageMode
impl Debug for PixelStorageMode
Source§impl From<PixelStorageMode> for JsValue
impl From<PixelStorageMode> for JsValue
Source§fn from(value: PixelStorageMode) -> Self
fn from(value: PixelStorageMode) -> Self
Converts to this type from the input type.
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
Source§impl TryFromJsValue for PixelStorageMode
impl TryFromJsValue for PixelStorageMode
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <PixelStorageMode as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <PixelStorageMode as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for PixelStorageMode
impl VectorFromWasmAbi for PixelStorageMode
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PixelStorageMode]>
Source§impl VectorIntoJsValue for PixelStorageMode
impl VectorIntoJsValue for PixelStorageMode
fn vector_into_jsvalue(vector: Box<[PixelStorageMode]>) -> JsValue
Source§impl VectorIntoWasmAbi for PixelStorageMode
impl VectorIntoWasmAbi for PixelStorageMode
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PixelStorageMode]>) -> Self::Abi
Source§impl WasmDescribeVector for PixelStorageMode
impl WasmDescribeVector 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.