pub struct CopyImageToBufferInfo {
pub src_image: Arc<Image>,
pub src_image_layout: ImageLayout,
pub dst_buffer: Subbuffer<[u8]>,
pub regions: SmallVec<[BufferImageCopy; 1]>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to copy data from an image to a buffer.
Fields§
§src_image: Arc<Image>
The image to copy from.
There is no default value.
src_image_layout: ImageLayout
The layout used for src_image
during the copy operation.
The following layouts are allowed:
The default value is ImageLayout::TransferSrcOptimal
.
dst_buffer: Subbuffer<[u8]>
The buffer to copy to.
There is no default value.
regions: SmallVec<[BufferImageCopy; 1]>
The regions of the image and buffer 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
Implementations§
Trait Implementations§
Source§impl Clone for CopyImageToBufferInfo
impl Clone for CopyImageToBufferInfo
Source§fn clone(&self) -> CopyImageToBufferInfo
fn clone(&self) -> CopyImageToBufferInfo
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 moreAuto Trait Implementations§
impl Freeze for CopyImageToBufferInfo
impl !RefUnwindSafe for CopyImageToBufferInfo
impl Send for CopyImageToBufferInfo
impl Sync for CopyImageToBufferInfo
impl Unpin for CopyImageToBufferInfo
impl !UnwindSafe for CopyImageToBufferInfo
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