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

Upload image to resource

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

Copies the data from the vector into the buffer.

Parameters

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

Exceptions

Exception Error Code Description
std::system_error -1 out of host memory
⚠️ **GitHub.com Fallback** ⚠️