GPU utilities.
#include <renderer/YiGPUExportUtilities.h>
Static Public Member Functions | |
| static std::unique_ptr< CYIBitmap > | ReadPixels (const CYIRenderTarget &rTarget, const CYIViewport &rViewport, bool bReadFromBackbuffer=true) |
| static std::unique_ptr< CYIBitmap > | ReadPixels (const CYIRenderTarget &rTarget) |
|
static |
Read back image data from a framebuffer. The specified viewport region in the render target will be returned as a CYIBitmap pointer.
When rTarget is a screen render target, the bReadFromBackbuffer parameter can be used to determine which buffer to read pixels from. By default, pixels are read from the back buffer.
|
static |
Returns the entire render target as a software buffer.