Home -> IDataArray -> QueueDataUpdate
Description
The QueueDataUpdate method updates data in the buffer. Unlike the SetInitialData method, the provided memory can be modified or deallocated immediately after this method returns.
Important
Data transfer operations are scheduled work. When an ITransferBatch is supplied, the transfer follows the synchronization rules for that batch.
Usage
SuccessToken QueueDataUpdate(const void* sourceBuffer, size_t sourceBufferSizeInBytes, size_t targetBufferOffsetInBytes = 0, ITransferBatch* transferBatch = nullptr);
Argument list
- sourceBuffer [const void*]
- The source data to copy into the resource.
- sourceBufferSizeInBytes [size_t]
- The size, in bytes, of the source data.
- targetBufferOffsetInBytes [size_t]
- The byte offset in the destination buffer where the update begins.
- transferBatch [ITransferBatch*]
- An optional transfer batch to schedule the update into. If null, the renderer schedules the update 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.