IImageResource::upload - dpw105f18/papago-api GitHub Wiki
template<typename T> void IImageResource::upload(const vector<T>& data);Copies the data from the vector into the buffer.
| Parameter | Description |
|---|---|
| data | The data in the vector will be uploaded to the GPU |
| Exception | Error Code | Description |
|---|---|---|
| std::system_error | -1 | out of host memory |