nvtt: nvtt::BatchList Struct Reference

nvtt

Loading...
Searching...
No Matches
Public Member Functions | List of all members
nvtt::BatchList Struct Reference

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.

## Detailed Description

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.

Since
  NVTT 3.0

The documentation for this struct was generated from the following file:

- nvtt/nvtt.h