pub struct CopyBufferInfo<'a> {
pub src_buffer: Id<Buffer>,
pub dst_buffer: Id<Buffer>,
pub regions: &'a [BufferCopy<'a>],
pub _ne: NonExhaustive<'a>,
}
Expand description
Parameters to copy data from a buffer to another buffer.
The fields of regions
represent bytes.
Fields§
§src_buffer: Id<Buffer>
The buffer to copy from.
The default value is Id::INVALID
, which must be overridden.
dst_buffer: Id<Buffer>
The buffer to copy to.
The default value is Id::INVALID
, which must be overridden.
regions: &'a [BufferCopy<'a>]
The regions of both buffers to copy between, specified in bytes.
The default value is a single region, with zero offsets and a size
equal to the smallest
of the two buffers.
_ne: NonExhaustive<'a>
Trait Implementations§
Source§impl<'a> Clone for CopyBufferInfo<'a>
impl<'a> Clone for CopyBufferInfo<'a>
Source§fn clone(&self) -> CopyBufferInfo<'a>
fn clone(&self) -> CopyBufferInfo<'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 CopyBufferInfo<'a>
impl<'a> Debug for CopyBufferInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for CopyBufferInfo<'a>
impl<'a> RefUnwindSafe for CopyBufferInfo<'a>
impl<'a> Send for CopyBufferInfo<'a>
impl<'a> Sync for CopyBufferInfo<'a>
impl<'a> Unpin for CopyBufferInfo<'a>
impl<'a> UnwindSafe for CopyBufferInfo<'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