[][src]Struct nvtt_rs::CompressionOptions

pub struct 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]

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]

Trait Implementations

impl Drop for CompressionOptions[src]

impl Debug for CompressionOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]