[−][src]Struct nvtt_rs::CompressionOptions
Object which stores the compression options for the texture.
Methods
impl CompressionOptions
[src]
pub fn new() -> Result<Self, Error>
[src]
Create a new CompressionOptions
.
pub fn into_raw(self) -> *mut NvttCompressionOptions
[src]
pub fn set_color_weights(&mut self, r: f32, g: f32, b: f32, a: f32) -> &mut Self
[src]
pub fn set_format(&mut self, format: Format) -> &mut Self
[src]
pub fn set_pixel_format(
&mut self,
bitcount: c_uint,
rmask: c_uint,
gmask: c_uint,
bmask: c_uint,
amask: c_uint
) -> &mut Self
[src]
&mut self,
bitcount: c_uint,
rmask: c_uint,
gmask: c_uint,
bmask: c_uint,
amask: c_uint
) -> &mut Self
pub fn set_quality(&mut self, quality: Quality) -> &mut Self
[src]
pub fn set_quanitzation(
&mut self,
color_dithering: impl Into<NvttBoolean>,
alpha_dithering: impl Into<NvttBoolean>,
binary_alpha: impl Into<NvttBoolean>,
alpha_threshold: i32
) -> &mut Self
[src]
&mut self,
color_dithering: impl Into<NvttBoolean>,
alpha_dithering: impl Into<NvttBoolean>,
binary_alpha: impl Into<NvttBoolean>,
alpha_threshold: i32
) -> &mut Self
Trait Implementations
impl Drop for CompressionOptions
[src]
impl Debug for CompressionOptions
[src]
Auto Trait Implementations
impl !Send for CompressionOptions
impl !Sync for CompressionOptions
impl Unpin for CompressionOptions
impl UnwindSafe for CompressionOptions
impl RefUnwindSafe for CompressionOptions
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,