Expand description
A low-level Rust wrapper over KhronosGroup/KTX-Software, a library for reading, transcoding and writing Khronos Textures (KTX).
You very likely want to use the high-level wrapper, [libktx_rs
] instead of this crate!
Re-exports§
pub use self::ktx_error_code_e as ktxResult;
Structs§
- __
Bindgen Union Field - ktxAstc
Params - @memberof ktxTexture @~English @brief Structure for passing extended parameters to ktxTexture_CompressAstc.
- ktxBasis
Params - @memberof ktxTexture2 @~English @brief Structure for passing extended parameters to ktxTexture2_CompressBasisEx.
- ktxFormat
Size - @brief Structure for holding size information for a texture format.
- ktxKV
List Entry - ktxMem
- ktxOrientation
- @~English @brief Struct describing the logical orientation of an image.
- ktxStream
- @~English
- ktxStream__
bindgen_ ty_ 1 - ktxStream__
bindgen_ ty_ 1__ bindgen_ ty_ 1 - ktxTexture
- @class ktxTexture @~English @brief Base class representing a texture.
- ktxTexture1
- @class ktxTexture1 @~English @brief Class representing a KTX version 1 format texture.
- ktxTexture2
- @class ktxTexture2 @~English @brief Class representing a KTX version 2 format texture.
- ktxTexture1_
private - < Private data.
- ktxTexture2_
private - < Private data.
- ktxTexture
Create Info - @memberof ktxTexture @~English @brief Structure for passing texture information to ktxTexture[12]_Create().
- ktxTexture_
protected - @memberof ktxTexture @~English
- ktxTexture_
vtbl - @memberof ktxTexture @~English @brief Table of virtual ktxTexture methods.
- ktxTexture_
vtbl Int - ktxTexture_
vvtbl
Constants§
- KTX_
ANIMDATA_ KEY - KTX_
ENDIAN_ REF - KTX_
ENDIAN_ REF_ REV - KTX_
FALSE - KTX_
GL_ UNPACK_ ALIGNMENT - KTX_
HEADER_ SIZE - KTX_
ORIENTATIO N1_ FMT - KTX_
ORIENTATIO N2_ FMT - KTX_
ORIENTATIO N3_ FMT - KTX_
ORIENTATION_ KEY - KTX_
SWIZZLE_ KEY - KTX_
TRUE - KTX_
WRITER_ KEY - KTX_
WRITER_ SCPARAMS_ KEY - class_
id_ ktxTexture1_ c - class_
id_ ktxTexture2_ c - ktxFormat
Size Flag Bits_ KTX_ FORMAT_ SIZE_ COMPRESSED_ BIT - ktxFormat
Size Flag Bits_ KTX_ FORMAT_ SIZE_ DEPTH_ BIT - ktxFormat
Size Flag Bits_ KTX_ FORMAT_ SIZE_ PACKED_ BIT - ktxFormat
Size Flag Bits_ KTX_ FORMAT_ SIZE_ PALETTIZED_ BIT - ktxFormat
Size Flag Bits_ KTX_ FORMAT_ SIZE_ STENCIL_ BIT - ktxFormat
Version Enum_ KTX_ FORMAT_ VERSION_ ONE - ktxFormat
Version Enum_ KTX_ FORMAT_ VERSION_ TWO - ktxOrientationX_
KTX_ ORIENT_ X_ LEFT - ktxOrientationX_
KTX_ ORIENT_ X_ RIGHT - ktxOrientationY_
KTX_ ORIENT_ Y_ DOWN - ktxOrientationY_
KTX_ ORIENT_ Y_ UP - ktxOrientationZ_
KTX_ ORIENT_ Z_ IN - ktxOrientationZ_
KTX_ ORIENT_ Z_ OUT - ktxSupercmp
Scheme_ KTX_ SS_ BASIS_ LZ - < Basis LZ supercompression.
- ktxSupercmp
Scheme_ KTX_ SS_ BEGIN_ RANGE - ktxSupercmp
Scheme_ KTX_ SS_ BEGIN_ RESERVED - ktxSupercmp
Scheme_ KTX_ SS_ BEGIN_ VENDOR_ RANGE - ktxSupercmp
Scheme_ KTX_ SS_ END_ RANGE - ktxSupercmp
Scheme_ KTX_ SS_ END_ VENDOR_ RANGE - ktxSupercmp
Scheme_ KTX_ SS_ NONE - < No supercompression.
- ktxSupercmp
Scheme_ KTX_ SS_ ZSTD - < ZStd supercompression.
- ktxSupercmp
Scheme_ KTX_ SUPERCOMPRESSION_ BASIS - ktxSupercmp
Scheme_ KTX_ SUPERCOMPRESSION_ ZSTD - ktxTexture
Create Flag Bits_ KTX_ TEXTURE_ CREATE_ LOAD_ IMAGE_ DATA_ BIT - ktxTexture
Create Flag Bits_ KTX_ TEXTURE_ CREATE_ NO_ FLAGS - ktxTexture
Create Flag Bits_ KTX_ TEXTURE_ CREATE_ RAW_ KVDATA_ BIT - ktxTexture
Create Flag Bits_ KTX_ TEXTURE_ CREATE_ SKIP_ KVDATA_ BIT - ktxTexture
Create Storage Enum_ KTX_ TEXTURE_ CREATE_ ALLOC_ STORAGE - < Allocate image storage.
- ktxTexture
Create Storage Enum_ KTX_ TEXTURE_ CREATE_ NO_ STORAGE - < Don’t allocate any image storage.
- ktx_
error_ code_ e_ KTX_ ERROR_ MAX_ ENUM - < For safety checks.
- ktx_
error_ code_ e_ KTX_ FILE_ DATA_ ERROR - < The data in the file is inconsistent with the spec.
- ktx_
error_ code_ e_ KTX_ FILE_ ISPIPE - < The file is a pipe or named pipe.
- ktx_
error_ code_ e_ KTX_ FILE_ OPEN_ FAILED - < The target file could not be opened.
- ktx_
error_ code_ e_ KTX_ FILE_ OVERFLOW - < The operation would exceed the max file size.
- ktx_
error_ code_ e_ KTX_ FILE_ READ_ ERROR - < An error occurred while reading from the file.
- ktx_
error_ code_ e_ KTX_ FILE_ SEEK_ ERROR - < An error occurred while seeking in the file.
- ktx_
error_ code_ e_ KTX_ FILE_ UNEXPECTED_ EOF - < File does not have enough data to satisfy request.
- ktx_
error_ code_ e_ KTX_ FILE_ WRITE_ ERROR - < An error occurred while writing to the file.
- ktx_
error_ code_ e_ KTX_ GL_ ERROR - < GL operations resulted in an error.
- ktx_
error_ code_ e_ KTX_ INVALID_ OPERATION - < The operation is not allowed in the current state.
- ktx_
error_ code_ e_ KTX_ INVALID_ VALUE - < A parameter value was not valid
- ktx_
error_ code_ e_ KTX_ LIBRARY_ NOT_ LINKED - < Library dependency (OpenGL or Vulkan) not linked into application.
- ktx_
error_ code_ e_ KTX_ NOT_ FOUND - < Requested key was not found
- ktx_
error_ code_ e_ KTX_ OUT_ OF_ MEMORY - < Not enough memory to complete the operation.
- ktx_
error_ code_ e_ KTX_ SUCCESS - < Operation was successful.
- ktx_
error_ code_ e_ KTX_ TRANSCODE_ FAILED - < Transcoding of block compressed texture failed.
- ktx_
error_ code_ e_ KTX_ UNKNOWN_ FILE_ FORMAT - < The file not a KTX file
- ktx_
error_ code_ e_ KTX_ UNSUPPORTED_ FEATURE - < Feature not included in in-use library or not yet implemented.
- ktx_
error_ code_ e_ KTX_ UNSUPPORTED_ TEXTURE_ TYPE - < The KTX file specifies an unsupported texture type.
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 3x3x3 - : 4.74 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 4x4 - : 8.00 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 4x3x3 - : 3.56 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 4x4x3 - : 2.67 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 4x4x4 - : 2.00 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 5x4 - : 6.40 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 5x5 - : 5.12 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 5x4x4 - : 1.60 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 5x5x4 - : 1.28 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 5x5x5 - : 1.02 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 6x5 - : 4.27 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 6x6 - : 3.56 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 6x5x5 - : 0.85 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 6x6x5 - : 0.71 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 6x6x6 - : 0.59 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 8x5 - : 3.20 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 8x6 - : 2.67 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 8x8 - : 2.00 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 10x5 - : 2.56 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 10x6 - : 2.13 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 10x8 - : 1.60 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 10x10 - : 1.28 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 12x10 - : 1.07 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ 12x12 - : 0.89 bpp
- ktx_
pack_ astc_ block_ dimension_ e_ KTX_ PACK_ ASTC_ BLOCK_ DIMENSION_ MAX - ktx_
pack_ astc_ encoder_ function_ e_ KTX_ PACK_ ASTC_ ENCODER_ FUNCTION_ LINEAR - ktx_
pack_ astc_ encoder_ function_ e_ KTX_ PACK_ ASTC_ ENCODER_ FUNCTION_ MAX - ktx_
pack_ astc_ encoder_ function_ e_ KTX_ PACK_ ASTC_ ENCODER_ FUNCTION_ SRGB - ktx_
pack_ astc_ encoder_ function_ e_ KTX_ PACK_ ASTC_ ENCODER_ FUNCTION_ UNKNOWN - ktx_
pack_ astc_ encoder_ mode_ e_ KTX_ PACK_ ASTC_ ENCODER_ MODE_ DEFAULT - ktx_
pack_ astc_ encoder_ mode_ e_ KTX_ PACK_ ASTC_ ENCODER_ MODE_ HDR - ktx_
pack_ astc_ encoder_ mode_ e_ KTX_ PACK_ ASTC_ ENCODER_ MODE_ LDR - ktx_
pack_ astc_ encoder_ mode_ e_ KTX_ PACK_ ASTC_ ENCODER_ MODE_ MAX - ktx_
pack_ astc_ quality_ levels_ e_ KTX_ PACK_ ASTC_ QUALITY_ LEVEL_ EXHAUSTIVE - ktx_
pack_ astc_ quality_ levels_ e_ KTX_ PACK_ ASTC_ QUALITY_ LEVEL_ FAST - ktx_
pack_ astc_ quality_ levels_ e_ KTX_ PACK_ ASTC_ QUALITY_ LEVEL_ FASTEST - ktx_
pack_ astc_ quality_ levels_ e_ KTX_ PACK_ ASTC_ QUALITY_ LEVEL_ MAX - ktx_
pack_ astc_ quality_ levels_ e_ KTX_ PACK_ ASTC_ QUALITY_ LEVEL_ MEDIUM - ktx_
pack_ astc_ quality_ levels_ e_ KTX_ PACK_ ASTC_ QUALITY_ LEVEL_ THOROUGH - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ ETC1_ FASTER_ HINTS - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ ETC1_ FASTEST_ HINTS - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ FAVOR_ BC7_ ERROR - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ FAVOR_ UASTC_ ERROR - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ LEVEL_ DEFAULT - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ LEVEL_ FASTER - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ LEVEL_ FASTEST - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ LEVEL_ MASK - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ LEVEL_ SLOWER - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ LEVEL_ VERYSLOW - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC_ MAX_ LEVEL - ktx_
pack_ uastc_ flag_ bits_ e_ KTX_ PACK_ UASTC__ ETC1_ DISABLE_ FLIP_ AND_ INDIVIDUAL - ktx_
transcode_ flag_ bits_ e_ KTX_ TF_ HIGH_ QUALITY - ktx_
transcode_ flag_ bits_ e_ KTX_ TF_ PVRTC_ DECODE_ TO_ NEXT_ POW2 - ktx_
transcode_ flag_ bits_ e_ KTX_ TF_ TRANSCODE_ ALPHA_ DATA_ TO_ OPAQUE_ FORMATS - ktx_
transcode_ fmt_ e_ KTX_ TF_ BC1 - ktx_
transcode_ fmt_ e_ KTX_ TF_ BC3 - ktx_
transcode_ fmt_ e_ KTX_ TF_ BC4 - ktx_
transcode_ fmt_ e_ KTX_ TF_ BC5 - ktx_
transcode_ fmt_ e_ KTX_ TF_ BC7_ M6_ OPAQUE_ ONLY - ktx_
transcode_ fmt_ e_ KTX_ TF_ ETC1 - Old enums for compatibility with code compiled against previous versions of libktx.
- ktx_
transcode_ fmt_ e_ KTX_ TF_ ETC2 - ktx_
transcode_ fmt_ e_ KTX_ TF_ PVRT C1_ 4_ OPAQUE_ ONLY - ktx_
transcode_ fmt_ e_ KTX_ TTF_ ASTC_ 4x4_ RGBA - ASTC (mobile, Intel devices, hopefully all desktop GPU’s one day)
- ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC1_ OR_ 3 - ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC1_ RGB - BC1-5, BC7 (desktop, some mobile devices)
- ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC3_ RGBA - ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC4_ R - ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC5_ RG - ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC7_ M5_ RGBA - ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC7_ M6_ RGB - ktx_
transcode_ fmt_ e_ KTX_ TTF_ BC7_ RGBA - ktx_
transcode_ fmt_ e_ KTX_ TTF_ BGR565 - ktx_
transcode_ fmt_ e_ KTX_ TTF_ ETC - Values for automatic selection of RGB or RGBA depending if alpha present.
- ktx_
transcode_ fmt_ e_ KTX_ TTF_ ETC1_ RGB - ETC1-2
- ktx_
transcode_ fmt_ e_ KTX_ TTF_ ETC2_ EAC_ R11 - ktx_
transcode_ fmt_ e_ KTX_ TTF_ ETC2_ EAC_ RG11 - ktx_
transcode_ fmt_ e_ KTX_ TTF_ ETC2_ RGBA - ktx_
transcode_ fmt_ e_ KTX_ TTF_ NOSELECTION - ktx_
transcode_ fmt_ e_ KTX_ TTF_ PVRT C1_ 4_ RGB - PVRTC1 4bpp (mobile, PowerVR devices)
- ktx_
transcode_ fmt_ e_ KTX_ TTF_ PVRT C1_ 4_ RGBA - ktx_
transcode_ fmt_ e_ KTX_ TTF_ PVRT C2_ 4_ RGB - ATC and FXT1 formats are not supported by KTX2 as there are no equivalent VkFormats.
- ktx_
transcode_ fmt_ e_ KTX_ TTF_ PVRT C2_ 4_ RGBA - ktx_
transcode_ fmt_ e_ KTX_ TTF_ RGB565 - ktx_
transcode_ fmt_ e_ KTX_ TTF_ RGBA32 - Uncompressed (raw pixel) formats
- ktx_
transcode_ fmt_ e_ KTX_ TTF_ RGBA4444 - stream
Type_ eStream Type Custom - stream
Type_ eStream Type File - stream
Type_ eStream Type Memory
Statics§
Functions§
- ktxError
String ⚠ - Returns a string corresponding to a KTX error code.
- ktxFormat
Size_ ⚠init From Dfd - ktxHash
List ⚠Entry_ GetKey - Get the key from a ktxHashListEntry
- ktxHash
List ⚠Entry_ GetValue - Get the value from a ktxHashListEntry
- ktxHash
List_ ⚠AddKV Pair - Adds a key-value pair to a hash list.
- ktxHash
List_ ⚠Construct - ktxHash
List_ ⚠Construct Copy - ktxHash
List_ ⚠Create - ktxHash
List_ ⚠Create Copy - ktxHash
List_ ⚠Delete Entry - Deletes a ktxHashListEntry from a ktxHashList.
- ktxHash
List_ ⚠DeleteKV Pair - Finds the entry for a key in a ktxHashList and deletes it.
- ktxHash
List_ ⚠Deserialize - Creates a hash table from the serialized data read from a a KTX file.
- ktxHash
List_ ⚠Destroy - ktxHash
List_ ⚠Destruct - ktxHash
List_ ⚠Find Entry - Looks up a key and returns the ktxHashListEntry.
- ktxHash
List_ ⚠Find Value - Looks up a key and returns the value.
- ktxHash
List_ ⚠Next - Return the next entry in a ktxHashList.
- ktxHash
List_ ⚠Serialize - Serializes a ktxHashList to a block of memory suitable for writing to a KTX file.
- ktxHash
List_ ⚠Sort - Sorts a ktxHashList into order of the key codepoints.
- ktxPrint
Info ⚠ForMemory - ktxPrint
Info ⚠ForNamed File - ktxPrint
Info ⚠ForStdio Stream - ===========================================================* Utilities for printing info about a KTX file. *
- ktxSupercompression
Scheme ⚠String - Returns a string corresponding to a supercompression scheme.
- ktxTexture1_
Create ⚠ - Create a new ktxTexture1.
- ktxTexture1_
Create ⚠From Memory - ktxTexture1_
Create ⚠From Named File - ktxTexture1_
Create ⚠From Stdio Stream - These four create a ktxTexture1 provided the data is in KTX format.
- ktxTexture1_
Create ⚠From Stream - ktxTexture1_
Needs ⚠Transcoding - ktxTexture1_
WriteKT ⚠X2To Memory - Write a ktxTexture object to a block of memory in KTX format.
- ktxTexture1_
WriteKT ⚠X2To Named File - Write a ktxTexture object to a named file in KTX format.
- ktxTexture1_
WriteKT ⚠X2To Stdio Stream - Write a ktxTexture object to a stdio stream in KTX format.
- ktxTexture1_
WriteKT ⚠X2To Stream - Write a ktxTexture object to a ktxStream in KTX format.
- ktxTexture2_
Compress ⚠Astc - ktxTexture2_
Compress ⚠Astc Ex - ktxTexture2_
Compress ⚠Basis - ktxTexture2_
Compress ⚠Basis Ex - ktxTexture2_
Create ⚠ - Create a new ktxTexture2.
- ktxTexture2_
Create ⚠Copy - Create a new ktxTexture2 as a copy of an existing texture.
- ktxTexture2_
Create ⚠From Memory - ktxTexture2_
Create ⚠From Named File - ktxTexture2_
Create ⚠From Stdio Stream - These four create a ktxTexture2 provided the data is in KTX2 format.
- ktxTexture2_
Create ⚠From Stream - ktxTexture2_
Deflate ⚠Zstd - ktxTexture2_
GetComponent ⚠Info - ktxTexture2_
GetNum ⚠Components - ktxTexture2_
GetOETF ⚠ - ktxTexture2_
GetPremultiplied ⚠Alpha - ktxTexture2_
Needs ⚠Transcoding - ktxTexture2_
Transcode ⚠Basis - ktxTexture_
Create ⚠From Memory - ktxTexture_
Create ⚠From Named File - ktxTexture_
Create ⚠From Stdio Stream - These four create a ktxTexture1 or ktxTexture2 according to the data header, and return a pointer to the base ktxTexture class.
- ktxTexture_
Create ⚠From Stream - ktxTexture_
GLUpload ⚠ - Uploads a texture to OpenGL {,ES}.
- ktxTexture_
GetData ⚠ - Returns a pointer to the image data of a ktxTexture object.
- ktxTexture_
GetData ⚠Size - Returns the size of all the image data of a ktxTexture object in bytes.
- ktxTexture_
GetElement ⚠Size - Return the element size of the texture’s images.
- ktxTexture_
GetRow ⚠Pitch - Returns the pitch of a row of an image at the specified level. Similar to the rowPitch in a VkSubResourceLayout.
- ktxTexture_
Iterate ⚠Level Faces - Iterate over the levels or faces in a ktxTexture object.
- ktxTexture_
calc ⚠Data Size Texture - ktxTexture_
calc ⚠Image Size - ktxTexture_
calc ⚠Level Size - ktxTexture_
construct ⚠ - ktxTexture_
construct ⚠From Stream - ktxTexture_
destruct ⚠ - ktxTexture_
doCalc ⚠Face LodSize - ktxTexture_
isActive ⚠Stream - ktxTexture_
iterate ⚠Loaded Images - ktxTexture_
iterate ⚠Source Images - ktxTexture_
layer ⚠Size - ktxTexture_
rowInfo ⚠ - ktxTranscode
Format ⚠String - Returns a string corresponding to a transcode target format.
Type Aliases§
- FILE
- GLenum
- GLuint
- PFNCALCDATASIZELEVELS
- PFNCALCFACELODSIZE
- PFNCALCLEVELOFFSET
- PFNKTEXDESTROY
- Don’t use KTX_APIENTRYP to avoid a Doxygen bug.
- PFNKTEXGETDATASIZEUNCOMPRESSED
- PFNKTEXGETIMAGEOFFSET
- PFNKTEXGETIMAGESIZE
- PFNKTEXITERATELEVELS
- PFNKTEXITERATELOADLEVELFACES
- PFNKTEXLOADIMAGEDATA
- PFNKTEXNEEDSTRANSCODING
- PFNKTEXSETIMAGEFROMMEMORY
- PFNKTEXSETIMAGEFROMSTDIOSTREAM
- PFNKTEXWRITETOMEMORY
- PFNKTEXWRITETONAMEDFILE
- PFNKTEXWRITETOSTDIOSTREAM
- PFNKTEXWRITETOSTREAM
- PFNKTXITERCB
- @memberof ktxTexture @~English @brief Signature of function called by the ktxTexture_Iterate* functions to receive image data.
- __
int16_ t - __
int32_ t - __
int64_ t - __off_t
- __
uint16_ t - __
uint32_ t - __
uint64_ t - class_
id - ktxFormat
Size Flag Bits - ktxFormat
Size Flags - ktxFormat
Version Enum - ktxHash
List - @class ktxHashList @~English @brief Opaque handle to a ktxHashList.
- ktxHash
List Entry - @class ktxHashListEntry @~English @brief Opaque handle to an entry in a @ref ktxHashList.
- ktxOrientationX
- ktxOrientationY
- ktxOrientationZ
- ktxStream__
custom_ ptr - ktxStream__
data - ktxStream_
destruct - @~English @brief Destruct a stream
- ktxStream_
getpos - @~English @brief type for a pointer to a stream position query function
- ktxStream_
getsize - @~English @brief type for a pointer to a stream size query function
- ktxStream_
read - @~English @brief type for a pointer to a stream reading function
- ktxStream_
setpos - @~English @brief type for a pointer to a stream position query function
- ktxStream_
skip - @~English @brief type for a pointer to a stream skipping function
- ktxStream_
write - @~English @brief type for a pointer to a stream reading function
- ktxSupercmp
Scheme - @~English @brief Enumerators identifying the supercompression scheme.
- ktxTexture
Create Flag Bits - @memberof ktxTexture @~English @brief Flags for requesting services during creation.
- ktxTexture
Create Flags - @memberof ktxTexture @~English @brief Type for TextureCreateFlags parameters.
- ktxTexture
Create Storage Enum - @memberof ktxTexture @~English @brief Enum for requesting, or not, allocation of storage for images.
- ktx_
bool_ t - ktx_
error_ code_ e - @~English @brief Error codes returned by library functions.
- ktx_
int16_ t - ktx_
int32_ t - ktx_
int64_ t - ktx_
off_ t - ktx_
pack_ astc_ block_ dimension_ e - @~English @brief Options specifiying ASTC encoding block dimensions
- ktx_
pack_ astc_ encoder_ function_ e - @~English @brief Options specifiying ASTC encoder profile function
- ktx_
pack_ astc_ encoder_ mode_ e - @~English @brief Options specifying ASTC encoder profile mode This and function is used later to derive the profile.
- ktx_
pack_ astc_ quality_ levels_ e - @~English @brief Options specifiying ASTC encoding quality levels.
- ktx_
pack_ uastc_ flag_ bits_ e - @~English @brief Flags specifiying UASTC encoding options.
- ktx_
pack_ uastc_ flags - ktx_
size_ t - ktx_
transcode_ flag_ bits_ e - @~English @brief Flags guiding transcoding of Basis Universal compressed textures.
- ktx_
transcode_ flags - ktx_
transcode_ fmt_ e - @~English @brief Enumerators for specifying the transcode target format.
- ktx_
uint8_ t - To avoid including <KHR/khrplatform.h> define our own types.
- ktx_
uint16_ t - ktx_
uint32_ t - ktx_
uint32_ t_ SIZE_ ASSERT - This will cause compilation to fail if size of uint32 != 4.
- ktx_
uint64_ t - off_t
- size_t
- stream
Type