pub struct TextureCopyRegion<T> {
pub texture: T,
pub kind: Kind,
pub cube_face: Option<CubeFace>,
pub info: RawImageInfo,
}Expand description
A texture region defined for copy operations
Fields§
§texture: TRaw texture
kind: KindTexture kind
cube_face: Option<CubeFace>Optional cube face
info: RawImageInfoDimensions, offsets, and format
Implementations§
Source§impl<T> TextureCopyRegion<T>
impl<T> TextureCopyRegion<T>
Sourcepub fn with_texture<U>(self, texture: U) -> TextureCopyRegion<U>
pub fn with_texture<U>(self, texture: U) -> TextureCopyRegion<U>
Change the texture
Trait Implementations§
Source§impl<T: Clone> Clone for TextureCopyRegion<T>
impl<T: Clone> Clone for TextureCopyRegion<T>
Source§fn clone(&self) -> TextureCopyRegion<T>
fn clone(&self) -> TextureCopyRegion<T>
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<T: Debug> Debug for TextureCopyRegion<T>
impl<T: Debug> Debug for TextureCopyRegion<T>
Source§impl<T: Hash> Hash for TextureCopyRegion<T>
impl<T: Hash> Hash for TextureCopyRegion<T>
Source§impl<T: Ord> Ord for TextureCopyRegion<T>
impl<T: Ord> Ord for TextureCopyRegion<T>
Source§fn cmp(&self, other: &TextureCopyRegion<T>) -> Ordering
fn cmp(&self, other: &TextureCopyRegion<T>) -> 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<T: PartialEq> PartialEq for TextureCopyRegion<T>
impl<T: PartialEq> PartialEq for TextureCopyRegion<T>
Source§impl<T: PartialOrd> PartialOrd for TextureCopyRegion<T>
impl<T: PartialOrd> PartialOrd for TextureCopyRegion<T>
impl<T: Eq> Eq for TextureCopyRegion<T>
impl<T> StructuralPartialEq for TextureCopyRegion<T>
Auto Trait Implementations§
impl<T> Freeze for TextureCopyRegion<T>where
T: Freeze,
impl<T> RefUnwindSafe for TextureCopyRegion<T>where
T: RefUnwindSafe,
impl<T> Send for TextureCopyRegion<T>where
T: Send,
impl<T> Sync for TextureCopyRegion<T>where
T: Sync,
impl<T> Unpin for TextureCopyRegion<T>where
T: Unpin,
impl<T> UnwindSafe for TextureCopyRegion<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