Struct vulkano::command_buffer::CopyBufferInfoTyped
source · pub struct CopyBufferInfoTyped<T> {
pub src_buffer: Subbuffer<[T]>,
pub dst_buffer: Subbuffer<[T]>,
pub regions: SmallVec<[BufferCopy; 1]>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to copy data from a buffer to another buffer, with type information.
The fields of regions
represent elements of T
.
Fields§
§src_buffer: Subbuffer<[T]>
The buffer to copy from.
There is no default value.
dst_buffer: Subbuffer<[T]>
The buffer to copy to.
There is no default value.
regions: SmallVec<[BufferCopy; 1]>
The regions of both buffers to copy between, specified in elements of T
.
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<T: Clone> Clone for CopyBufferInfoTyped<T>
impl<T: Clone> Clone for CopyBufferInfoTyped<T>
source§fn clone(&self) -> CopyBufferInfoTyped<T>
fn clone(&self) -> CopyBufferInfoTyped<T>
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<T: Debug> Debug for CopyBufferInfoTyped<T>
impl<T: Debug> Debug for CopyBufferInfoTyped<T>
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<T> !RefUnwindSafe for CopyBufferInfoTyped<T>
impl<T> Send for CopyBufferInfoTyped<T>where T: Send + Sync,
impl<T> Sync for CopyBufferInfoTyped<T>where T: Send + Sync,
impl<T> Unpin for CopyBufferInfoTyped<T>
impl<T> !UnwindSafe for CopyBufferInfoTyped<T>
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