Struct vulkano::command_buffer::CopyBufferInfoTyped
source · pub struct CopyBufferInfoTyped<S, D, T>where
S: TypedBufferAccess<Content = [T]>,
D: TypedBufferAccess<Content = [T]>,{
pub src_buffer: Arc<S>,
pub dst_buffer: Arc<D>,
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: Arc<S>
The buffer to copy from.
There is no default value.
dst_buffer: Arc<D>
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§
source§impl<S, D, T> CopyBufferInfoTyped<S, D, T>where
S: TypedBufferAccess<Content = [T]>,
D: TypedBufferAccess<Content = [T]>,
impl<S, D, T> CopyBufferInfoTyped<S, D, T>where
S: TypedBufferAccess<Content = [T]>,
D: TypedBufferAccess<Content = [T]>,
Trait Implementations§
source§impl<S, D, T: Clone> Clone for CopyBufferInfoTyped<S, D, T>where
S: TypedBufferAccess<Content = [T]> + Clone,
D: TypedBufferAccess<Content = [T]> + Clone,
impl<S, D, T: Clone> Clone for CopyBufferInfoTyped<S, D, T>where
S: TypedBufferAccess<Content = [T]> + Clone,
D: TypedBufferAccess<Content = [T]> + Clone,
source§fn clone(&self) -> CopyBufferInfoTyped<S, D, T>
fn clone(&self) -> CopyBufferInfoTyped<S, D, 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<S, D, T: Debug> Debug for CopyBufferInfoTyped<S, D, T>where
S: TypedBufferAccess<Content = [T]> + Debug,
D: TypedBufferAccess<Content = [T]> + Debug,
impl<S, D, T: Debug> Debug for CopyBufferInfoTyped<S, D, T>where
S: TypedBufferAccess<Content = [T]> + Debug,
D: TypedBufferAccess<Content = [T]> + Debug,
source§impl<S, D, T> From<CopyBufferInfoTyped<S, D, T>> for CopyBufferInfowhere
S: TypedBufferAccess<Content = [T]> + 'static,
D: TypedBufferAccess<Content = [T]> + 'static,
impl<S, D, T> From<CopyBufferInfoTyped<S, D, T>> for CopyBufferInfowhere
S: TypedBufferAccess<Content = [T]> + 'static,
D: TypedBufferAccess<Content = [T]> + 'static,
source§fn from(typed: CopyBufferInfoTyped<S, D, T>) -> Self
fn from(typed: CopyBufferInfoTyped<S, D, T>) -> Self
Converts to this type from the input type.