class SGFXAPI::PixelBuffer

Public Functions

void UpdateToGpu()

Uploads data to the GPU, assuming there is a CPU buffer.

Public Members

std::unique_ptr<PixelBufferPimpl> pimpl

Locks the GPU buffer, and returns a pointer to the memory on the CPU.

Must call UnMap() when reading/writing is complete.

Allows calls to glReadPixels(), while bound, and it will not block until the PBO is mapped.