[][src]Enum azul_webrender_api::ImageFormat

#[repr(u8)]pub enum ImageFormat {
    R8,
    R16,
    BGRA8,
    RGBAF32,
    RG8,
    RG16,
    RGBAI32,
    RGBA8,
}

Specifies the format of a series of pixels, in driver terms.

Variants

R8

One-channel, byte storage. The "red" doesn't map to the color red per se, and is just the way that OpenGL has historically referred to single-channel buffers.

R16

One-channel, short storage

BGRA8

Four channels, byte storage.

RGBAF32

Four channels, float storage.

RG8

Two-channels, byte storage. Similar to R8, this just means "two channels" rather than "red and green".

RG16

Two-channels, byte storage. Similar to R16, this just means "two channels" rather than "red and green".

RGBAI32

Four channels, signed integer storage.

RGBA8

Four channels, byte storage.

Implementations

impl ImageFormat[src]

pub fn bytes_per_pixel(self) -> i32[src]

Returns the number of bytes per pixel for the given format.

Trait Implementations

impl Clone for ImageFormat[src]

impl Copy for ImageFormat[src]

impl Debug for ImageFormat[src]

impl<'de> Deserialize<'de> for ImageFormat[src]

impl Eq for ImageFormat[src]

impl Hash for ImageFormat[src]

impl PartialEq<ImageFormat> for ImageFormat[src]

impl Serialize for ImageFormat[src]

impl StructuralEq for ImageFormat[src]

impl StructuralPartialEq for ImageFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.