IImageResource - dpw105f18/papago-api GitHub Wiki

defined in header "iimagerresource.hpp"

class IImageResource;

IImageResource is an interface to image data that is located in the GPU. Objects of this class can be used to represent both on and off screen color and depth buffers.

Creating an instance of this class containing color data is done using the createTexture2D on IDevice. For depth data use createDepthTexture2D.

Methods

Methods Description
[upload](/dpw105f18/papago-api/wiki/IImageResource::upload) uploads data to the image
[download](/dpw105f18/papago-api/wiki/IImageResource::download) downloads the data from the GPU
[inUse](/dpw105f18/papago-api/wiki/IImageResource::inUse) tells if a buffer is currently being used by the GPU
[getFormat](/dpw105f18/papago-api/wiki/IImageResource::getFormat) tells the format of the image resource