#[repr(u32)]
pub enum ImageFormat {
Show 42 variants Unknown, Rgba32f, Rgba16f, R32f, Rgba8, Rgba8Snorm, Rg32f, Rg16f, R11fG11fB10f, R16f, Rgba16, Rgb10A2, Rg16, Rg8, R16, R8, Rgba16Snorm, Rg16Snorm, Rg8Snorm, R16Snorm, R8Snorm, Rgba32i, Rgba16i, Rgba8i, R32i, Rg32i, Rg16i, Rg8i, R16i, R8i, Rgba32ui, Rgba16ui, Rgba8ui, R32ui, Rgb10A2ui, Rg32ui, Rg16ui, Rg8ui, R16ui, R8ui, R64ui, R64i,
}
Expand description

The underlying internal representation of the image.

Variants§

§

Unknown

Representation not known at compile time.

§

Rgba32f

RGBA channels, 32 bit floating point per channel.

§

Rgba16f

RGBA channels, 16 bit floating point per channel.

§

R32f

Single red channel, 32 bit floating point.

§

Rgba8

RGBA channels, 8 bit unsigned normalized integer per channel.

§

Rgba8Snorm

RGBA channels, 8 bit signed normalized integer per channel.

§

Rg32f

Red+Green channels, 32 bit floating point per channel.

§

Rg16f

Red+Green channels, 16 bit floating point per channel.

§

R11fG11fB10f

32 bits containing two 11 bit floating point numbers for the Red and Green channels, and a 10 bit floating point number for the Blue channel.

§

R16f

Single red channel, 16 bit floating point.

§

Rgba16

RGBA channels, 16 bit unsigned normalized integer per channel.

§

Rgb10A2

32 bits containing three 10 bit unsigned normalized integers for the Red, Green, and Blue channels, and a 2 bit unsigned normalized integer for the Alpha channel.

§

Rg16

Red+Green channels, 16 bit unsigned normalized integer per channel.

§

Rg8

Red+Green channels, 8 bit unsigned normalized integer per channel.

§

R16

Single red channel, 16 bit unsigned normalized integer.

§

R8

Single red channel, 8 bit unsigned normalized integer.

§

Rgba16Snorm

RGBA channels, 16 bit signed normalized integer per channel.

§

Rg16Snorm

Red+Green channels, 16 bit signed normalized integer per channel.

§

Rg8Snorm

Red+Green channels, 8 bit signed normalized integer per channel.

§

R16Snorm

Single red channel, 16 bit signed normalized integer.

§

R8Snorm

Single red channel, 8 bit signed normalized integer.

§

Rgba32i

RGBA channels, 32 bit signed integer per channel (not normalized).

§

Rgba16i

RGBA channels, 16 bit signed integer per channel (not normalized).

§

Rgba8i

RGBA channels, 8 bit signed integer per channel (not normalized).

§

R32i

Single red channel, 32 bit signed integer (not normalized).

§

Rg32i

Red+Green channels, 32 bit signed integer per channel (not normalized).

§

Rg16i

Red+Green channels, 16 bit signed integer per channel (not normalized).

§

Rg8i

Red+Green channels, 8 bit signed integer per channel (not normalized).

§

R16i

Single red channel, 16 bit signed integer (not normalized).

§

R8i

Single red channel, 8 bit signed integer (not normalized).

§

Rgba32ui

RGBA channels, 32 bit unsigned integer per channel (not normalized).

§

Rgba16ui

RGBA channels, 16 bit unsigned integer per channel (not normalized).

§

Rgba8ui

RGBA channels, 8 bit unsigned integer per channel (not normalized).

§

R32ui

Single red channel, 32 bit unsigned integer (not normalized).

§

Rgb10A2ui

32 bits containing three 10 bit unsigned integers for the Red, Green, and Blue channels, and a 2 bit unsigned integer for the Alpha channel.

§

Rg32ui

Red+Green channels, 32 bit unsigned integer per channel (not normalized).

§

Rg16ui

Red+Green channels, 16 bit unsigned integer per channel (not normalized).

§

Rg8ui

Red+Green channels, 8 bit unsigned integer per channel (not normalized).

§

R16ui

Single red channel, 16 bit unsigned integer (not normalized).

§

R8ui

Single red channel, 8 bit unsigned integer (not normalized).

§

R64ui

Single red channel, 64 bit unsigned integer (not normalized).

§

R64i

Single red channel, 64 bit signed integer (not normalized).

Trait Implementations§

source§

impl PartialEq<ImageFormat> for ImageFormat

source§

fn eq(&self, other: &ImageFormat) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for ImageFormat

source§

impl StructuralEq for ImageFormat

source§

impl StructuralPartialEq for ImageFormat

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.