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
sourceimpl 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
sourceimpl Clone for CopyBufferInfo
impl Clone for CopyBufferInfo
sourcefn clone(&self) -> CopyBufferInfo
fn clone(&self) -> CopyBufferInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CopyBufferInfo
impl Debug for CopyBufferInfo
sourceimpl<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,
sourcefn from(typed: CopyBufferInfoTyped<S, D, T>) -> Self
fn from(typed: CopyBufferInfoTyped<S, D, 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more