Transcoder of Texture Container format and Transform format and GPU compress format. More...
#include <Transcoder.h>
Public Member Functions | |
| Transcoder ()=default | |
| Constructor Function. | |
| virtual | ~Transcoder ()=default |
| Destructor Function. | |
Static Public Member Functions | |
| static void | Init () |
| Init basisu. | |
| static ktxTexture2 * | CreateKTX2Texture (int &width, int &height) |
| Create a ktx2 Texture. | |
| static bool | WriteData (ktxTexture2 *texture, uint32_t mipLevel, const unsigned char *data, uint32_t size) |
| Write Data to ktxtexture. | |
| static bool | SaveToDisk (ktxTexture2 *texture, const std::string &filePath) |
| Save a src image data to a ktx file. | |
| static bool | LoadFromKTX (const std::string &filePath, ktxTexture2 *&texture) |
| Load a ktx file. | |
| static bool | DestroyktxTexture2 (ktxTexture2 *texture) |
| Destroy a ktx file. | |
| static ktx_size_t | GetMipmapOffset (ktxTexture2 *texture, uint32_t mipLevel) |
| Get Mipmap data offset. | |
Static Private Member Functions | |
| static bool | FormatSupported (VkFormat format) |
| Check if the device supports sampling and transfers for the selected image. | |
| static ktx_transcode_fmt_e | GetAvailableTargetFormats () |
| Get available gpu compress format. | |
Transcoder of Texture Container format and Transform format and GPU compress format.
Definition at line 16 of file Transcoder.h.