Struct vulkano::command_buffer::CopyBufferInfo
source · pub struct CopyBufferInfo {
pub src_buffer: Subbuffer<[u8]>,
pub dst_buffer: Subbuffer<[u8]>,
pub regions: SmallVec<[BufferCopy; 1]>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to copy data from a buffer to another buffer.
The fields of regions
represent bytes.
Fields§
§src_buffer: Subbuffer<[u8]>
The buffer to copy from.
There is no default value.
dst_buffer: Subbuffer<[u8]>
The buffer to copy to.
There is no default value.
regions: SmallVec<[BufferCopy; 1]>
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
Implementations§
Trait Implementations§
source§impl Clone for CopyBufferInfo
impl Clone for CopyBufferInfo
source§fn clone(&self) -> CopyBufferInfo
fn clone(&self) -> CopyBufferInfo
Returns a copy 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 Debug for CopyBufferInfo
impl Debug for CopyBufferInfo
source§impl<T> From<CopyBufferInfoTyped<T>> for CopyBufferInfo
impl<T> From<CopyBufferInfoTyped<T>> for CopyBufferInfo
source§fn from(typed: CopyBufferInfoTyped<T>) -> Self
fn from(typed: CopyBufferInfoTyped<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CopyBufferInfo
impl Send for CopyBufferInfo
impl Sync for CopyBufferInfo
impl Unpin for CopyBufferInfo
impl !UnwindSafe for CopyBufferInfo
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