Home -> ITexelArray -> QueueDataTransfer
Description
The QueueDataTransfer method schedules a transfer from one ITexelArray to another, within GPU memory.
Important
Data transfer operations are scheduled work. When an ITransferBatch is supplied, the transfer follows the synchronization rules for that batch.
Usage
SuccessToken QueueDataTransfer(ITexelArray* targetBuffer, size_t transferCount, size_t sourceBufferOffset = 0, size_t targetBufferOffset = 0, ITransferBatch* transferBatch = nullptr);
Argument list
- targetBuffer [ITexelArray*]
- The destination buffer for the GPU-side transfer.
- transferCount [size_t]
- The number of texel entries to transfer.
- sourceBufferOffset [size_t]
- The source entry offset where the transfer begins.
- targetBufferOffset [size_t]
- The destination entry offset where the transfer begins.
- transferBatch [ITransferBatch*]
- An optional transfer batch to schedule the transfer into. If null, the renderer schedules the transfer independently.
Return value
- [SuccessToken]
- True if the operation succeeded, false otherwise. An assertion will be raised in debug builds if the result is not tested.