IDynamicBufferResource::upload - dpw105f18/papago-api GitHub Wiki
template<typename T> void upload(const std::vector<T>& data)Copies the data from a vector into the entire buffer.
| Parameter | Description |
|---|---|
| data | The data in the vector will be uploaded to the GPU |
template<typename T> void upload(T& data, size_t index)Copies the data into a specific index of the buffer.
| Parameter | Description |
|---|---|
| data | The data to be uploaded to the GPU |
| index | The index in the buffer to upload to |