spirv_std::image

Enum ImageFormat

Source
#[repr(u32)]
pub enum ImageFormat {
Show 42 variants Unknown = 0, Rgba32f = 1, Rgba16f = 2, R32f = 3, Rgba8 = 4, Rgba8Snorm = 5, Rg32f = 6, Rg16f = 7, R11fG11fB10f = 8, R16f = 9, Rgba16 = 10, Rgb10A2 = 11, Rg16 = 12, Rg8 = 13, R16 = 14, R8 = 15, Rgba16Snorm = 16, Rg16Snorm = 17, Rg8Snorm = 18, R16Snorm = 19, R8Snorm = 20, Rgba32i = 21, Rgba16i = 22, Rgba8i = 23, R32i = 24, Rg32i = 25, Rg16i = 26, Rg8i = 27, R16i = 28, R8i = 29, Rgba32ui = 30, Rgba16ui = 31, Rgba8ui = 32, R32ui = 33, Rgb10A2ui = 34, Rg32ui = 35, Rg16ui = 36, Rg8ui = 37, R16ui = 38, R8ui = 39, R64ui = 40, R64i = 41,
}
Expand description

The underlying internal representation of the image.

Variants§

§

Unknown = 0

Representation not known at compile time.

§

Rgba32f = 1

RGBA channels, 32 bit floating point per channel.

§

Rgba16f = 2

RGBA channels, 16 bit floating point per channel.

§

R32f = 3

Single red channel, 32 bit floating point.

§

Rgba8 = 4

RGBA channels, 8 bit unsigned normalized integer per channel.

§

Rgba8Snorm = 5

RGBA channels, 8 bit signed normalized integer per channel.

§

Rg32f = 6

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

§

Rg16f = 7

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

§

R11fG11fB10f = 8

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 = 9

Single red channel, 16 bit floating point.

§

Rgba16 = 10

RGBA channels, 16 bit unsigned normalized integer per channel.

§

Rgb10A2 = 11

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 = 12

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

§

Rg8 = 13

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

§

R16 = 14

Single red channel, 16 bit unsigned normalized integer.

§

R8 = 15

Single red channel, 8 bit unsigned normalized integer.

§

Rgba16Snorm = 16

RGBA channels, 16 bit signed normalized integer per channel.

§

Rg16Snorm = 17

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

§

Rg8Snorm = 18

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

§

R16Snorm = 19

Single red channel, 16 bit signed normalized integer.

§

R8Snorm = 20

Single red channel, 8 bit signed normalized integer.

§

Rgba32i = 21

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

§

Rgba16i = 22

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

§

Rgba8i = 23

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

§

R32i = 24

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

§

Rg32i = 25

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

§

Rg16i = 26

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

§

Rg8i = 27

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

§

R16i = 28

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

§

R8i = 29

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

§

Rgba32ui = 30

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

§

Rgba16ui = 31

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

§

Rgba8ui = 32

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

§

R32ui = 33

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

§

Rgb10A2ui = 34

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 = 35

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

§

Rg16ui = 36

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

§

Rg8ui = 37

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

§

R16ui = 38

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

§

R8ui = 39

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

§

R64ui = 40

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

§

R64i = 41

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

Trait Implementations§

Source§

impl PartialEq for ImageFormat

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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 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
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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.