[−][src]Enum nvtt_rs::Format
Specify the output format.
You can see the Microsoft Documentation
for more information about the Bc
formats.
Variants
Use the bc1
compression algorithm. This supports images with 3 rgb channels.
Use the bc1
with alpha compression algorithm. This supports images with 3 rgb channels, and 1 bit
for the alpha channel.
Use bc2
compression, which supports rgb channels, and 4 bits of alpha.
Use bc3
compression, which supports rgb channels, and 8 bits of alpha.
@TODO
@TODO
Use bc4
compression, which supports a single red channel using 8 bits.
Use bc5
compression, which supports two channels of 8 bits each.
Use bc6
compression, which supports HDR encoded textures. See the MSDN docs for more.
Use bc7
compression, which supports high quality Rgb
and Rgba
textures. See the MSDN
docs for more.
Trait Implementations
impl Clone for Format
[src]
impl Copy for Format
[src]
impl Debug for Format
[src]
impl Eq for Format
[src]
impl<'_> From<&'_ Format> for NvttFormat
[src]
impl From<Format> for NvttFormat
[src]
impl Hash for Format
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Format> for Format
[src]
impl PartialEq<Format> for NvttFormat
[src]
impl PartialEq<u32> for Format
[src]
impl StructuralEq for Format
[src]
impl StructuralPartialEq for Format
[src]
impl TryFrom<u32> for Format
[src]
type Error = EnumConvertError<NvttFormat>
The type returned in the event of a conversion error.
fn try_from(raw: NvttFormat) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,