LiteFX::Rendering::ICommandBuffer::transfer¶
Performs a buffer-to-buffer transfer from source to target.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void transfer(
IBuffer const& source,
IBuffer const& target,
UInt32 sourceElement = 0,
UInt32 targetElement = 0,
UInt32 elements = 1) const;
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.
Exceptions¶
| Name | Thrown on |
|---|---|
ArgumentOutOfRangeException | Thrown, if the number of either the source buffer or the target buffer has not enough elements for the specified elements parameter. |
Parameters¶
| Name | Description |
|---|---|
| source | The source buffer to transfer data from. |
| target | The target buffer to transfer data to. |
| sourceElement | The index of the first element in the source buffer to copy. |
| targetElement | The index of the first element in the target buffer to copy to. |
| elements | The number of elements to copy from the source buffer into the target buffer. |
See Also¶
IBarrier