nvtt
|
Structure defining a list of inputs to be compressed. More...
#include <nvtt.h>
Public Member Functions | |
NVTT_API | BatchList () |
Creates an empty BatchList. | |
NVTT_API | ~BatchList () |
Destructor. | |
NVTT_API void | Clear () |
Clears the list of inputs in this BatchList. | |
NVTT_API void | Append (const Surface *pImg, int face, int mipmap, const OutputOptions *outputOptions) |
Adds a pointer to the surface, its face and mipmap index, and a pointer to the output method to the input list. | |
NVTT_API unsigned | GetSize () const |
Returns the size of the input list. | |
NVTT_API void | GetItem (unsigned i, const Surface *&pImg, int &face, int &mipmap, const OutputOptions *&outputOptions) const |
Gets the i th item in the input list. | |
Structure defining a list of inputs to be compressed.
Inputs will be combined for parallel GPU processing. Better performance expected comparing to the Surface-only API, which compresses each image one by one, especially when the images are small.