#[repr(C)]pub struct TiImageSlice {
pub image: TiImage,
pub offset: TiImageOffset,
pub extent: TiImageExtent,
pub mip_level: u32,
}Expand description
Structure TiImageSlice
A subsection of a memory allocation. The sum of offset and extent in each dimension cannot exceed the size of image.
Fields§
§image: TiImageThe subsectioned image allocation.
offset: TiImageOffsetOffset from the beginning of the allocation in each dimension.
extent: TiImageExtentSize of the subsection in each dimension.
mip_level: u32The subsectioned mip-level.
Trait Implementations§
Source§impl Clone for TiImageSlice
impl Clone for TiImageSlice
Source§fn clone(&self) -> TiImageSlice
fn clone(&self) -> TiImageSlice
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 moreimpl Copy for TiImageSlice
Auto Trait Implementations§
impl Freeze for TiImageSlice
impl RefUnwindSafe for TiImageSlice
impl Send for TiImageSlice
impl Sync for TiImageSlice
impl Unpin for TiImageSlice
impl UnwindSafe for TiImageSlice
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