logo
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

Returns a CopyBufferInfo with the specified src_buffer and dst_buffer.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.