pub enum ImageFormat {
Show 17 variants
R8G8B8A8Unorm,
R8G8B8A8Srgb,
R8G8B8A8Sscaled,
R8G8B8A8Sint,
R8G8B8A8Snorm,
R8G8B8A8Uint,
B8G8R8Sscaled,
B8G8R8Srgb,
B8G8R8Snorm,
B8G8R8Sint,
A1R5G5B5UnormPack16,
A2B10G10R10SintPack32,
A2B10G10R10SnormPack32,
A2B10G10R10SscaledPack32,
A2B10G10R10UintPack32,
Undefined,
B8G8R8A8Unorm,
}
Expand description
Indicates the format of the image.
Variants§
R8G8B8A8Unorm
R8G8B8A8Srgb
R8G8B8A8Sscaled
R8G8B8A8Sint
R8G8B8A8Snorm
R8G8B8A8Uint
B8G8R8Sscaled
B8G8R8Srgb
B8G8R8Snorm
B8G8R8Sint
A1R5G5B5UnormPack16
A2B10G10R10SintPack32
A2B10G10R10SnormPack32
A2B10G10R10SscaledPack32
A2B10G10R10UintPack32
Undefined
B8G8R8A8Unorm
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImageFormat
impl Debug for ImageFormat
Source§impl Into<Format> for ImageFormat
impl Into<Format> for ImageFormat
Source§impl Into<ImageFormat> for Format
impl Into<ImageFormat> for Format
Source§fn into(self) -> ImageFormat
fn into(self) -> ImageFormat
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
impl Copy for ImageFormat
impl Eq for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
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
Mutably borrows from an owned value. Read more