pub struct CopyImageInfo<'a> {
pub src_image: Id<Image>,
pub src_image_layout: ImageLayoutType,
pub dst_image: Id<Image>,
pub dst_image_layout: ImageLayoutType,
pub regions: &'a [ImageCopy<'a>],
pub _ne: NonExhaustive<'a>,
}
Expand description
Parameters to copy data from an image to another image.
Fields§
§src_image: Id<Image>
The image to copy from.
The default value is Id::INVALID
, which must be overridden.
src_image_layout: ImageLayoutType
The layout used for src_image
during the copy operation.
The default value is ImageLayoutType::Optimal
.
dst_image: Id<Image>
The image to copy to.
The default value is Id::INVALID
, which must be overridden.
dst_image_layout: ImageLayoutType
The layout used for dst_image
during the copy operation.
The default value is ImageLayoutType::Optimal
.
regions: &'a [ImageCopy<'a>]
The regions of both images to copy between.
The default value is a single region, covering the first mip level, and the smallest of the
array layers and extent of the two images. All aspects of each image are selected, or
plane0
if the image is multi-planar.
_ne: NonExhaustive<'a>
Trait Implementations§
Source§impl<'a> Clone for CopyImageInfo<'a>
impl<'a> Clone for CopyImageInfo<'a>
Source§fn clone(&self) -> CopyImageInfo<'a>
fn clone(&self) -> CopyImageInfo<'a>
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<'a> Debug for CopyImageInfo<'a>
impl<'a> Debug for CopyImageInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for CopyImageInfo<'a>
impl<'a> RefUnwindSafe for CopyImageInfo<'a>
impl<'a> Send for CopyImageInfo<'a>
impl<'a> Sync for CopyImageInfo<'a>
impl<'a> Unpin for CopyImageInfo<'a>
impl<'a> UnwindSafe for CopyImageInfo<'a>
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