#[repr(i32)]pub enum BasisTextureFormat {
ETC1S = 0,
UASTC4x4 = 1,
}
Expand description
The compression mode/format to use
Variants§
ETC1S = 0
A lower quality mode which is based off a subset of ETC1 called “ETC1S”. Includes built-in data compression
UASTC4x4 = 1
Enable UASTC compression mode instead of the default ETC1S mode. Significantly higher texture quality, but larger files. UASTC supports an optional Rate Distortion Optimization (RDO) post-process stage that conditions the encoded UASTC texture data in the .basis file so it can be more effectively LZ compressed by the end user.
Implementations§
Source§impl BasisTextureFormat
impl BasisTextureFormat
Sourcepub fn can_transcode_to_format(
self,
transcoder_texture_format: TranscoderTextureFormat,
) -> bool
pub fn can_transcode_to_format( self, transcoder_texture_format: TranscoderTextureFormat, ) -> bool
Returns true if the specified format was enabled at compile time.
Trait Implementations§
Source§impl Clone for BasisTextureFormat
impl Clone for BasisTextureFormat
Source§fn clone(&self) -> BasisTextureFormat
fn clone(&self) -> BasisTextureFormat
Returns a copy 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 BasisTextureFormat
impl Debug for BasisTextureFormat
Source§impl From<i32> for BasisTextureFormat
impl From<i32> for BasisTextureFormat
Source§fn from(value: basist_basis_tex_format) -> Self
fn from(value: basist_basis_tex_format) -> Self
Converts to this type from the input type.
Source§impl Into<i32> for BasisTextureFormat
impl Into<i32> for BasisTextureFormat
Source§fn into(self) -> basist_basis_tex_format
fn into(self) -> basist_basis_tex_format
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for BasisTextureFormat
impl PartialEq for BasisTextureFormat
impl Copy for BasisTextureFormat
impl StructuralPartialEq for BasisTextureFormat
Auto Trait Implementations§
impl Freeze for BasisTextureFormat
impl RefUnwindSafe for BasisTextureFormat
impl Send for BasisTextureFormat
impl Sync for BasisTextureFormat
impl Unpin for BasisTextureFormat
impl UnwindSafe for BasisTextureFormat
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