Struct webrender::device::gl::TextureFormatPair
source · pub struct TextureFormatPair<T> {
pub internal: T,
pub external: T,
}
Expand description
A structure defining a particular workflow of texture transfers.
Fields§
§internal: T
Format the GPU natively stores texels in.
external: T
Format we expect the users to provide the texels in.
Trait Implementations§
source§impl<T: Clone> Clone for TextureFormatPair<T>
impl<T: Clone> Clone for TextureFormatPair<T>
source§fn clone(&self) -> TextureFormatPair<T>
fn clone(&self) -> TextureFormatPair<T>
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<T: Debug> Debug for TextureFormatPair<T>
impl<T: Debug> Debug for TextureFormatPair<T>
source§impl<T: Copy> From<T> for TextureFormatPair<T>
impl<T: Copy> From<T> for TextureFormatPair<T>
Auto Trait Implementations§
impl<T> Freeze for TextureFormatPair<T>where
T: Freeze,
impl<T> RefUnwindSafe for TextureFormatPair<T>where
T: RefUnwindSafe,
impl<T> Send for TextureFormatPair<T>where
T: Send,
impl<T> Sync for TextureFormatPair<T>where
T: Sync,
impl<T> Unpin for TextureFormatPair<T>where
T: Unpin,
impl<T> UnwindSafe for TextureFormatPair<T>where
T: UnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more