pub enum TextureFormat {
Bc1RgbUnorm,
Bc4RUnorm,
}Expand description
Target block-compressed texture format produced by TextureCompressor.
Variants§
Bc1RgbUnorm
BC1 (DXT1) RGB opaque compression.
- Input: RGBA8 —
width × height × 4bytes. - Output: 8 bytes per 4×4 block →
(width/4) × (height/4) × 8bytes. - Compression ratio: 6:1 (vs. RGBA8).
Bc4RUnorm
BC4 single-channel (ATI1 / RGTC1) compression.
- Input: R8 —
width × heightbytes. - Output: 8 bytes per 4×4 block →
(width/4) × (height/4) × 8bytes. - Compression ratio: 2:1 (vs. R8).
Trait Implementations§
Source§impl Clone for TextureFormat
impl Clone for TextureFormat
Source§fn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextureFormat
Source§impl Debug for TextureFormat
impl Debug for TextureFormat
impl Eq for TextureFormat
Source§impl PartialEq for TextureFormat
impl PartialEq for TextureFormat
Source§fn eq(&self, other: &TextureFormat) -> bool
fn eq(&self, other: &TextureFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextureFormat
Auto Trait Implementations§
impl Freeze for TextureFormat
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnsafeUnpin for TextureFormat
impl UnwindSafe for TextureFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.