pub struct ImageRegion {
pub x: usize,
pub y: usize,
pub z: usize,
pub width: usize,
pub height: usize,
pub depth: usize,
}Expand description
Rectangular region used for image transfer or clip-rect configuration.
Fields§
§x: usizeCorresponds to the x field on MPSRegion.
y: usizeCorresponds to the y field on MPSRegion.
z: usizeCorresponds to the z field on MPSRegion.
width: usizeCorresponds to the width field on MPSRegion.
height: usizeCorresponds to the height field on MPSRegion.
depth: usizeCorresponds to the depth field on MPSRegion.
Implementations§
Trait Implementations§
Source§impl Clone for ImageRegion
impl Clone for ImageRegion
Source§fn clone(&self) -> ImageRegion
fn clone(&self) -> ImageRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageRegion
impl Debug for ImageRegion
impl Copy for ImageRegion
Auto Trait Implementations§
impl Freeze for ImageRegion
impl RefUnwindSafe for ImageRegion
impl Send for ImageRegion
impl Sync for ImageRegion
impl Unpin for ImageRegion
impl UnsafeUnpin for ImageRegion
impl UnwindSafe for ImageRegion
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