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

Returns a CopyBufferInfoTyped 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.