pub struct CopyBufferToImageInfo<'a> {
pub src_buffer: Id<Buffer>,
pub dst_image: Id<Image>,
pub dst_image_layout: ImageLayoutType,
pub regions: &'a [BufferImageCopy<'a>],
pub _ne: NonExhaustive<'a>,
}
Expand description
Parameters to copy data from a buffer to an image.
Fields§
§src_buffer: Id<Buffer>
The buffer to copy from.
The default value is Id::INVALID
, which must be overridden.
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 [BufferImageCopy<'a>]
The regions of the buffer and image to copy between.
The default value is a single region, covering all of the buffer and the first mip level of
the image. All aspects of the image are selected, or plane0
if the image is multi-planar.
_ne: NonExhaustive<'a>
Trait Implementations§
Source§impl<'a> Clone for CopyBufferToImageInfo<'a>
impl<'a> Clone for CopyBufferToImageInfo<'a>
Source§fn clone(&self) -> CopyBufferToImageInfo<'a>
fn clone(&self) -> CopyBufferToImageInfo<'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 CopyBufferToImageInfo<'a>
impl<'a> Debug for CopyBufferToImageInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for CopyBufferToImageInfo<'a>
impl<'a> RefUnwindSafe for CopyBufferToImageInfo<'a>
impl<'a> Send for CopyBufferToImageInfo<'a>
impl<'a> Sync for CopyBufferToImageInfo<'a>
impl<'a> Unpin for CopyBufferToImageInfo<'a>
impl<'a> UnwindSafe for CopyBufferToImageInfo<'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