IDynamicBufferResource::upload - dpw105f18/papago-api GitHub Wiki

Upload to entire buffer

template<typename T> void upload(const std::vector<T>& data)

Copies the data from a vector into the entire buffer.

Parameters

Parameter Description
data The data in the vector will be uploaded to the GPU

Upload to sub resource at index

template<typename T> void upload(T& data, size_t index)

Copies the data into a specific index of the buffer.

Parameters

Parameter Description
data The data to be uploaded to the GPU
index The index in the buffer to upload to
⚠️ **GitHub.com Fallback** ⚠️