Enum azul_webrender_api::ImageFormat [−][src]
#[repr(u8)] pub enum ImageFormat { R8, R16, BGRA8, RGBAF32, RG8, RG16, RGBAI32, RGBA8, }
Expand description
Specifies the format of a series of pixels, in driver terms.
Variants
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.
One-channel, short storage
Four channels, byte storage.
Four channels, float storage.
Two-channels, byte storage. Similar to R8
, this just means
“two channels” rather than “red and green”.
Two-channels, byte storage. Similar to R16
, this just means
“two channels” rather than “red and green”.
Four channels, signed integer storage.
Four channels, byte storage.
Implementations
Returns the number of bytes per pixel for the given format.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
Blanket Implementations
Mutably borrows from an owned value. Read more