libktx Reference 4.3.2
Libraries and tools to create and read KTX image texture files.
|
Structure for passing texture information to ktxTexture1_Create() and ktxTexture2_Create(). More...
#include <ktx.h>
Data Fields | |
ktx_uint32_t | glInternalformat |
ktx_uint32_t | vkFormat |
ktx_uint32_t * | pDfd |
ktx_uint32_t | baseWidth |
ktx_uint32_t | baseHeight |
ktx_uint32_t | baseDepth |
ktx_uint32_t | numDimensions |
ktx_uint32_t | numLevels |
ktx_uint32_t | numLayers |
ktx_uint32_t | numFaces |
ktx_bool_t | isArray |
ktx_bool_t | generateMipmaps |
Structure for passing texture information to ktxTexture1_Create() and ktxTexture2_Create().
ktx_uint32_t baseDepth |
Depth of the base level of the texture.
ktx_uint32_t baseHeight |
Height of the base level of the texture.
ktx_uint32_t baseWidth |
Width of the base level of the texture.
ktx_bool_t generateMipmaps |
Set to KTX_TRUE if mipmaps should be generated for the texture when loading into a 3D API.
ktx_uint32_t glInternalformat |
Internal format for the texture, e.g., GL_RGB8. Ignored when creating a ktxTexture2.
ktx_bool_t isArray |
Set to KTX_TRUE if the texture is to be an array texture. Means OpenGL will use a GL_TEXTURE_*_ARRAY target.
ktx_uint32_t numDimensions |
Number of dimensions in the texture, 1, 2 or 3.
ktx_uint32_t numFaces |
Number of faces: 6 for cube maps, 1 otherwise.
ktx_uint32_t numLayers |
Number of array layers in the texture.
ktx_uint32_t numLevels |
Number of mip levels in the texture. Should be 1 if generateMipmaps
is KTX_TRUE;
ktx_uint32_t* pDfd |
Pointer to DFD. Used only when creating a ktxTexture2 and only if vkFormat is VK_FORMAT_UNDEFINED.
ktx_uint32_t vkFormat |
VkFormat for texture. Ignored when creating a ktxTexture1.