Overte C++ Documentation
gpu::gl::TransferJob Class Reference

#include <GLTexture.h>

Detailed Description

A transfer job encapsulates an individual piece of work required to upload texture data to the GPU.
The work can be broken down into two parts, expressed as lambdas. The buffering lambda is repsonsible for putting the data to be uploaded into a CPU memory buffer. The transfer lambda is repsonsible for uploading the data from the CPU memory buffer to the GPU using OpenGL calls. Ideally the buffering lambda will be executed on a seprate thread from the OpenGL work to ensure that disk IO operations do not block OpenGL calls

Additionally, a TransferJob can encapsulate some kind of post-upload work that changes the state of the GLTexture derived object wrapping the actual texture ID, such as changing the _populateMip value once a given mip level has been compeltely uploaded


The documentation for this class was generated from the following files: