Skip to content

LiteFX::Rendering::CommandBuffer::transfer

Performs a buffer-to-buffer transfer from source to target.

Synopsis

Declared in <litefx/rendering.hpp>

virtual void transfer(
    buffer_type const& source,
    buffer_type const& target,
    UInt32 sourceElement = 0,
    UInt32 targetElement = 0,
    UInt32 elements = 1) const = 0;

Description

Note that you have to manually ensure that source and target are in the proper state for transfer operations. You might have to use a IBarrier before starting the transfer.

Parameters

NameDescription
sourceThe source buffer to transfer data from.
targetThe target buffer to transfer data to.
sourceElementThe index of the first element in the source buffer to copy.
targetElementThe index of the first element in the target buffer to copy to.
elementsThe number of elements to copy from the source buffer into the target buffer.

See Also

IBarrier