Struct vulkano::command_buffer::CopyImageToBufferInfo
source · [−]pub struct CopyImageToBufferInfo {
pub src_image: Arc<dyn ImageAccess>,
pub src_image_layout: ImageLayout,
pub dst_buffer: Arc<dyn BufferAccess>,
pub regions: SmallVec<[BufferImageCopy; 1]>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to copy data from an image to a buffer.
Fields
src_image: Arc<dyn ImageAccess>
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: Arc<dyn BufferAccess>
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
sourceimpl CopyImageToBufferInfo
impl CopyImageToBufferInfo
sourcepub fn image_buffer(
src_image: Arc<dyn ImageAccess>,
dst_buffer: Arc<dyn BufferAccess>
) -> Self
pub fn image_buffer(
src_image: Arc<dyn ImageAccess>,
dst_buffer: Arc<dyn BufferAccess>
) -> Self
Returns a CopyImageToBufferInfo
with the specified src_image
and
dst_buffer
.
Trait Implementations
sourceimpl Clone for CopyImageToBufferInfo
impl Clone for CopyImageToBufferInfo
sourcefn clone(&self) -> CopyImageToBufferInfo
fn clone(&self) -> CopyImageToBufferInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for CopyImageToBufferInfo
impl Send for CopyImageToBufferInfo
impl Sync for CopyImageToBufferInfo
impl Unpin for CopyImageToBufferInfo
impl !UnwindSafe for CopyImageToBufferInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more