Home -> IVertexBuffer -> QueueRawDataUpdate
Description
The QueueRawDataUpdate method allows data to be written directly to the buffer where manual layout attributes have been bound with the BindVertexAttributeManualLayout method.
Important
Data transfer operations are scheduled work. When an ITransferBatch is supplied, the transfer follows the synchronization rules for that batch.
Usage
SuccessToken QueueRawDataUpdate(const uint8_t* data, size_t dataSizeInBytes, size_t bufferOffsetInBytes, ITransferBatch* transferBatch = nullptr);
Argument list
- data [const uint8_t*]
- The source bytes to copy into the manually laid out buffer.
- dataSizeInBytes [size_t]
- The number of bytes to copy.
- bufferOffsetInBytes [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.