Enum vtflib::ImageFormat [−][src]
#[repr(i32)] pub enum ImageFormat {}Show variants
Rgba8888, Agbr8888, Rgb888, Bgr888, Rgb565, I8, Ia88, P8, A8, Rgb888Bluescreen, Bgr888Bluescreen, Argb8888, Bgra8888, Dxt1, Dxt3, Dxt5, Bgrx8888, Bgr565, Bgrx5551, Bgra4444, Dxt1OneBitAlpha, Bgra5551, Uv88, Uvwq8888, Rgba16161616F, Rgba16161616, Uvlx8888, R32F, Rgb323232F, Rgba32323232F, NvDst16, NvDst24, NvIntz, NvRawz, AtiDst16, AtiDst24, NvNull, Ati2N, Ati1N,
Expand description
VTFLib’s supported image formats.
Variants
Expand description
Red, green, blue, alpha - 32 bpp
Expand description
Alpha, blue, green, red - 32 bpp
Expand description
Red, green, blue - 24 bpp
Expand description
Blue, green, red - 24 bpp
Expand description
Red, green, blue - 16 bpp
Expand description
Luminance - 8 bpp
Expand description
Luminance, alpha - 8 bpp
Expand description
Paletted, 8 bpp
Expand description
Alpha, 8 bpp
Expand description
Red, green, blue, bluescreen alpha - 24 bpp
Expand description
Blue, green, red, bluescreen alpha - 24 bpp
Expand description
Alpha, red, green, blue - 32 bpp
Expand description
Blue, green, red, alpha - 32 bpp
Expand description
DXT1 compressed - 4 bpp
Expand description
DXT3 compressed - 8 bpp
Expand description
DXT5 compressed - 8 bpp
Expand description
Blue, green, red, unused - 32 bpp
Expand description
Blue, green, red - 16 bpp
Expand description
Blue, green, red, unused - 16 bpp
Expand description
Blue, green, red, alpha - 16 bpp
Expand description
DXT1 compressed, 1-bit alpha - 4 bpp
Expand description
Blue, green, red, alpha - 16 bpp
Expand description
2-channel format for DuDv/normal maps - 16 bpp
Expand description
4-channel format for DuDv/normal maps - 32 bpp
Expand description
Red, green, blue, alpha - 64 bpp
Expand description
Red, green, blue, alpha signed with mantissa - 64 bpp
Expand description
4-channel format for DuDv/normal maps - 32 bpp
Expand description
Luminance - 32 bpp
Expand description
Red, green, blue - 96 bpp
Expand description
Red, green, blue, alpha - 128 bpp
Implementations
impl ImageFormat
[src]
impl ImageFormat
[src]#[must_use]pub fn info(self) -> Option<ImageFormatInfo>
[src]
#[must_use]pub fn info(self) -> Option<ImageFormatInfo>
[src]Get information about the image format.
Returns None
if the image format is unknown.
Trait Implementations
impl Clone for ImageFormat
[src]
impl Clone for ImageFormat
[src]fn clone(&self) -> ImageFormat
[src]
fn clone(&self) -> ImageFormat
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ImageFormat
[src]
impl Debug for ImageFormat
[src]impl PartialEq<ImageFormat> for ImageFormat
[src]
impl PartialEq<ImageFormat> for ImageFormat
[src]impl Copy for ImageFormat
[src]
impl StructuralPartialEq for ImageFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more