Struct vulkano::command_buffer::CopyBufferInfo
source · pub struct CopyBufferInfo {
pub src_buffer: Arc<dyn BufferAccess>,
pub dst_buffer: Arc<dyn BufferAccess>,
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: Arc<dyn BufferAccess>
The buffer to copy from.
There is no default value.
dst_buffer: Arc<dyn BufferAccess>
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§
source§impl CopyBufferInfo
impl CopyBufferInfo
sourcepub fn buffers(
src_buffer: Arc<dyn BufferAccess>,
dst_buffer: Arc<dyn BufferAccess>
) -> Self
pub fn buffers(
src_buffer: Arc<dyn BufferAccess>,
dst_buffer: Arc<dyn BufferAccess>
) -> Self
Returns a CopyBufferInfo
with the specified src_buffer
and dst_buffer
.
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<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.