#[non_exhaustive]pub enum TextureComponents {
A,
Rg,
Rgb,
Rgba,
Depth,
}
Expand description
See Texture::set_components
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A
Only the alpha component
Rg
Red and green components. Note that
this can only be used if the FeatureID::OglFeatureIdTextureRg
feature
is advertised.
Rgb
Red, green and blue components
Rgba
Red, green, blue and alpha components
Depth
Only a depth component
Trait Implementations§
Source§impl Clone for TextureComponents
impl Clone for TextureComponents
Source§fn clone(&self) -> TextureComponents
fn clone(&self) -> TextureComponents
Returns a duplicate 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 TextureComponents
impl Debug for TextureComponents
Source§impl Display for TextureComponents
impl Display for TextureComponents
Source§impl<'a> FromValue<'a> for TextureComponents
impl<'a> FromValue<'a> for TextureComponents
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for TextureComponents
impl<'a> FromValueOptional<'a> for TextureComponents
Source§impl Hash for TextureComponents
impl Hash for TextureComponents
Source§impl Ord for TextureComponents
impl Ord for TextureComponents
Source§fn cmp(&self, other: &TextureComponents) -> Ordering
fn cmp(&self, other: &TextureComponents) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TextureComponents
impl PartialEq for TextureComponents
Source§impl PartialOrd for TextureComponents
impl PartialOrd for TextureComponents
Source§impl SetValue for TextureComponents
impl SetValue for TextureComponents
Source§impl StaticType for TextureComponents
impl StaticType for TextureComponents
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for TextureComponents
impl Eq for TextureComponents
impl StructuralPartialEq for TextureComponents
Auto Trait Implementations§
impl Freeze for TextureComponents
impl RefUnwindSafe for TextureComponents
impl Send for TextureComponents
impl Sync for TextureComponents
impl Unpin for TextureComponents
impl UnwindSafe for TextureComponents
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.