Struct basis_universal::transcoding::DecodeFlags[][src]

pub struct DecodeFlags { /* fields omitted */ }

Implementations

impl DecodeFlags[src]

pub const PVRTC_DECODE_TO_NEXT_POW_2: DecodeFlags[src]

PVRTC1: decode non-pow2 ETC1S texture level to the next larger power of 2 (not implemented yet, but we're going to support it). Ignored if the slice's dimensions are already a power of 2.

pub const TRANSCODE_ALPHA_DATA_TO_OPAQUE_FORMATS: DecodeFlags[src]

When decoding to an opaque texture format, if the basis file has alpha, decode the alpha slice instead of the color slice to the output texture format. This is primarily to allow decoding of textures with alpha to multiple ETC1 textures (one for color, another for alpha).

pub const BC1_FORBID_THREE_COLOR_BLOCKS: DecodeFlags[src]

Forbid usage of BC1 3 color blocks (we don't support BC1 punchthrough alpha yet). This flag is used internally when decoding to BC3.

pub const OUTPUT_HAS_ALPHA_INDICES: DecodeFlags[src]

The output buffer contains alpha endpoint/selector indices. Used internally when decoding formats like ASTC that require both color and alpha data to be available when transcoding to the output format.

pub const HIGH_QULITY: DecodeFlags[src]

pub const fn empty() -> DecodeFlags[src]

Returns an empty set of flags

pub const fn all() -> DecodeFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<DecodeFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> DecodeFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> DecodeFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: DecodeFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: DecodeFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: DecodeFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: DecodeFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: DecodeFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: DecodeFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for DecodeFlags[src]

impl BitAnd<DecodeFlags> for DecodeFlags[src]

type Output = DecodeFlags

The resulting type after applying the & operator.

fn bitand(self, other: DecodeFlags) -> DecodeFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<DecodeFlags> for DecodeFlags[src]

fn bitand_assign(&mut self, other: DecodeFlags)[src]

Disables all flags disabled in the set.

impl BitOr<DecodeFlags> for DecodeFlags[src]

type Output = DecodeFlags

The resulting type after applying the | operator.

fn bitor(self, other: DecodeFlags) -> DecodeFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<DecodeFlags> for DecodeFlags[src]

fn bitor_assign(&mut self, other: DecodeFlags)[src]

Adds the set of flags.

impl BitXor<DecodeFlags> for DecodeFlags[src]

type Output = DecodeFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: DecodeFlags) -> DecodeFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<DecodeFlags> for DecodeFlags[src]

fn bitxor_assign(&mut self, other: DecodeFlags)[src]

Toggles the set of flags.

impl Clone for DecodeFlags[src]

impl Copy for DecodeFlags[src]

impl Debug for DecodeFlags[src]

impl Eq for DecodeFlags[src]

impl Extend<DecodeFlags> for DecodeFlags[src]

impl FromIterator<DecodeFlags> for DecodeFlags[src]

impl Hash for DecodeFlags[src]

impl LowerHex for DecodeFlags[src]

impl Not for DecodeFlags[src]

type Output = DecodeFlags

The resulting type after applying the ! operator.

fn not(self) -> DecodeFlags[src]

Returns the complement of this set of flags.

impl Octal for DecodeFlags[src]

impl Ord for DecodeFlags[src]

impl PartialEq<DecodeFlags> for DecodeFlags[src]

impl PartialOrd<DecodeFlags> for DecodeFlags[src]

impl StructuralEq for DecodeFlags[src]

impl StructuralPartialEq for DecodeFlags[src]

impl Sub<DecodeFlags> for DecodeFlags[src]

type Output = DecodeFlags

The resulting type after applying the - operator.

fn sub(self, other: DecodeFlags) -> DecodeFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<DecodeFlags> for DecodeFlags[src]

fn sub_assign(&mut self, other: DecodeFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for DecodeFlags[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.