Enum glium::uniforms::ImageUnitFormat
source · 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
impl Clone for ImageUnitFormat
source§fn clone(&self) -> ImageUnitFormat
fn clone(&self) -> ImageUnitFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageUnitFormat
impl Debug for ImageUnitFormat
source§impl Hash for ImageUnitFormat
impl Hash for ImageUnitFormat
source§impl PartialEq for ImageUnitFormat
impl PartialEq for ImageUnitFormat
source§fn eq(&self, other: &ImageUnitFormat) -> bool
fn eq(&self, other: &ImageUnitFormat) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for ImageUnitFormat
impl Eq for ImageUnitFormat
impl StructuralEq for ImageUnitFormat
impl StructuralPartialEq for ImageUnitFormat
Auto Trait Implementations§
impl RefUnwindSafe for ImageUnitFormat
impl Send for ImageUnitFormat
impl Sync for ImageUnitFormat
impl Unpin for ImageUnitFormat
impl UnwindSafe for ImageUnitFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.