pub enum ImageUnitFormat {
Show 39 variants RGBA32F, RGBA16F, RG32F, RG16F, R11FG11FB10F, R32F, R16F, RGBA32UI, RGBA16UI, RGB10A2UI, RGBA8UI, RG32UI, RG16UI, RG8UI, R32UI, R16UI, R8UI, RGBA32I, RGBA16I, RGBA8I, RG32I, RG16I, RG8I, R32I, R16I, R8I, RGBA16, RGB10A2, RGBA8, RG16, RG8, R16, R8, RGBA16snorm, RGBA8snorm, RG16snorm, RG8snorm, R16snorm, R8snorm,
}
Expand description

How the shader should interpret the data in the image

Variants§

§

RGBA32F

The image elements are 4-component 32 bit floating point

§

RGBA16F

The image elements are 4-component 16 bit floating point

§

RG32F

The image elements are 2-component 32 bit floating point

§

RG16F

The image elements are 4-component 16 bit floating point

§

R11FG11FB10F

The image elements are 2 11-bit floats and 1 10-bit float

§

R32F

The image elements are 1-component 32 bit floating point

§

R16F

The image elements are 4-component 16 bit floating point

§

RGBA32UI

The image elements are 4-component 32 bit unsigned integer

§

RGBA16UI

The image elements are 4-component 16 bit unsigned integer

§

RGB10A2UI

The image elements have 3 10-bit unsigned integer components and 1 2-bit alpha component

§

RGBA8UI

The image elements are 4-component 8 bit unsigned integer

§

RG32UI

The image elements are 2-component 32 bit unsigned integer

§

RG16UI

The image elements are 2-component 16 bit unsigned integer

§

RG8UI

The image elements are 2-component 8 bit unsigned integer

§

R32UI

The image elements are 1-component 32 bit unsigned integer

§

R16UI

The image elements are 1-component 16 bit unsigned integer

§

R8UI

The image elements are 1-component 8 bit unsigned integer

§

RGBA32I

The image elements are 4-component 32 bit signed integer

§

RGBA16I

The image elements are 4-component 16 bit signed integer

§

RGBA8I

The image elements are 4-component 8 bit signed integer

§

RG32I

The image elements are 2-component 32 bit signed integer

§

RG16I

The image elements are 2-component 16 bit signed integer

§

RG8I

The image elements are 2-component 8 bit signed integer

§

R32I

The image elements are 1-component 32 bit signed integer

§

R16I

The image elements are 1-component 16 bit signed integer

§

R8I

The image elements are 1-component 8 bit signed integer

§

RGBA16

The image elements are 4-component 16 bit floating point

§

RGB10A2

The image elements are 3-component 10 bit floating point with 2 alpha bits

§

RGBA8

The image elements are 4-component 8 bit floating point

§

RG16

The image elements are 2-component 16 bit floating point

§

RG8

The image elements are 2-component 8 bit floating point

§

R16

The image elements are 1-component 16 bit floating point

§

R8

The image elements are 1-component 8 bit floating point

§

RGBA16snorm

The image elements are 4-component 16 bit floating point, normalized to the -1.0 to 1.0 range

§

RGBA8snorm

The image elements are 4-component 8 bit floating point, normalized to the -1.0 to 1.0 range

§

RG16snorm

The image elements are 2-component 16 bit floating point, normalized to the -1.0 to 1.0 range

§

RG8snorm

The image elements are 2-component 8 bit floating point, normalized to the -1.0 to 1.0 range

§

R16snorm

The image elements are 1-component 16 bit floating point, normalized to the -1.0 to 1.0 range

§

R8snorm

The image elements are 1-component 8 bit floating point, normalized to the -1.0 to 1.0 range

Trait Implementations§

source§

impl Clone for ImageUnitFormat

source§

fn clone(&self) -> ImageUnitFormat

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 ImageUnitFormat

source§

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

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

impl Hash for ImageUnitFormat

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 ImageUnitFormat

source§

fn eq(&self, other: &ImageUnitFormat) -> 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 ImageUnitFormat

source§

impl Eq for ImageUnitFormat

source§

impl StructuralEq for ImageUnitFormat

source§

impl StructuralPartialEq for ImageUnitFormat

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> Content for T
where T: Copy,

§

type Owned = T

A type that holds a sized version of the content.
source§

unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
where F: FnOnce(&mut T) -> Result<(), E>,

Prepares an output buffer, then turns this buffer into an Owned. User-provided closure F must only write to and not read from &mut Self.
source§

fn get_elements_size() -> usize

Returns the size of each element.
source§

fn to_void_ptr(&self) -> *const ()

Produces a pointer to the data.
source§

fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>

Builds a pointer to this type from a raw pointer.
source§

fn is_size_suitable(size: usize) -> bool

Returns true if the size is suitable to store a type like this.
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.