#[repr(u32)]
pub enum ImageFormat {
Show 31 variants Unknown = 0, R8Unorm = 1, R8Uint = 2, R8Sint = 3, R8G8Unorm = 4, R8G8Uint = 5, R8G8Sint = 6, R8G8B8A8Unorm = 7, R8G8B8A8Uint = 8, R8G8B8A8Sint = 9, R8G8B8A8Srgb = 10, A2B10G10R10UnormPack32 = 11, A2B10G10R10UintPack32 = 12, R16Uint = 13, R16Sint = 14, R16Sfloat = 15, R16G16Uint = 16, R16G16Sint = 17, R16G16Sfloat = 18, R16G16B16A16Uint = 19, R16G16B16A16Sint = 20, R16G16B16A16Sfloat = 21, R32Uint = 22, R32Sint = 23, R32Sfloat = 24, R32G32Uint = 25, R32G32Sint = 26, R32G32Sfloat = 27, R32G32B32A32Uint = 28, R32G32B32A32Sint = 29, R32G32B32A32Sfloat = 30,
}
Expand description

Supported image formats for textures.

Variants§

§

Unknown = 0

§

R8Unorm = 1

§

R8Uint = 2

§

R8Sint = 3

§

R8G8Unorm = 4

§

R8G8Uint = 5

§

R8G8Sint = 6

§

R8G8B8A8Unorm = 7

§

R8G8B8A8Uint = 8

§

R8G8B8A8Sint = 9

§

R8G8B8A8Srgb = 10

§

A2B10G10R10UnormPack32 = 11

§

A2B10G10R10UintPack32 = 12

§

R16Uint = 13

§

R16Sint = 14

§

R16Sfloat = 15

§

R16G16Uint = 16

§

R16G16Sint = 17

§

R16G16Sfloat = 18

§

R16G16B16A16Uint = 19

§

R16G16B16A16Sint = 20

§

R16G16B16A16Sfloat = 21

§

R32Uint = 22

§

R32Sint = 23

§

R32Sfloat = 24

§

R32G32Uint = 25

§

R32G32Sint = 26

§

R32G32Sfloat = 27

§

R32G32B32A32Uint = 28

§

R32G32B32A32Sint = 29

§

R32G32B32A32Sfloat = 30

Trait Implementations§

source§

impl Clone for ImageFormat

source§

fn clone(&self) -> ImageFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ImageFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ImageFormat

source§

fn default() -> ImageFormat

Returns the “default value” for a type. Read more
source§

impl FromStr for ImageFormat

§

type Err = Infallible

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for ImageFormat

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq 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 Copy for ImageFormat

source§

impl Eq for ImageFormat

source§

impl StructuralPartialEq for ImageFormat

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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 T
where 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.