pub struct TextureFlags {
pub is_opaque: bool,
pub is_video_texture: bool,
}
Fields§
§is_opaque: bool
Whether this texture contains an alpha component
is_video_texture: bool
Optimization: use the compositor instead of OpenGL for energy optimization
Trait Implementations§
Source§impl Clone for TextureFlags
impl Clone for TextureFlags
Source§fn clone(&self) -> TextureFlags
fn clone(&self) -> TextureFlags
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 TextureFlags
impl Debug for TextureFlags
Source§impl Hash for TextureFlags
impl Hash for TextureFlags
Source§impl Ord for TextureFlags
impl Ord for TextureFlags
Source§fn cmp(&self, other: &TextureFlags) -> Ordering
fn cmp(&self, other: &TextureFlags) -> 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 TextureFlags
impl PartialEq for TextureFlags
Source§impl PartialOrd for TextureFlags
impl PartialOrd for TextureFlags
impl Copy for TextureFlags
impl Eq for TextureFlags
impl StructuralPartialEq for TextureFlags
Auto Trait Implementations§
impl Freeze for TextureFlags
impl RefUnwindSafe for TextureFlags
impl Send for TextureFlags
impl Sync for TextureFlags
impl Unpin for TextureFlags
impl UnwindSafe for TextureFlags
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)