Home -> IndexAttribute -> QueueDataUpdate
Description
The QueueDataUpdate method updates data in the associated 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 T* data, size_t entryCount, size_t initialIndexNo = 0, size_t entryStrideInBytes = sizeof(T), ITransferBatch* transferBatch = nullptr);
Argument list
- data [const T*]
- The source data to copy into the attribute or buffer.
- entryCount [size_t]
- The number of attribute entries to update.
- initialIndexNo [size_t]
- The first index entry to update.
- entryStrideInBytes [size_t]
- The byte stride between consecutive source entries.
- 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.