LiteFX::Rendering::Backends::VulkanCommandBuffer::transfer¶
Performs a buffer-to-buffer transfer from source to target.
Synopsis¶
Declared in <litefx/backends/vulkan.hpp>
[[dllimport, dllexport]] virtual void transfer(
IVulkanBuffer const& source,
IVulkanBuffer const& target,
UInt32 sourceElement = 0,
UInt32 targetElement = 0,
UInt32 elements = 1) const override;
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¶
| 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