libktx - The KTX Library 4.1.0
Libraries and tools to create and read KTX image texture files.
ktxTextureCreateInfo Struct Reference

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
 

Detailed Description

Structure for passing texture information to ktxTexture1_Create() and ktxTexture2_Create().

See also
ktxTexture1_Create() and ktxTexture2_Create().

Field Documentation

◆ baseDepth

ktx_uint32_t ktxTextureCreateInfo::baseDepth

Depth of the base level of the texture.

◆ baseHeight

ktx_uint32_t ktxTextureCreateInfo::baseHeight

Height of the base level of the texture.

◆ baseWidth

ktx_uint32_t ktxTextureCreateInfo::baseWidth

Width of the base level of the texture.

◆ generateMipmaps

ktx_bool_t ktxTextureCreateInfo::generateMipmaps

Set to KTX_TRUE if mipmaps should be generated for the texture when loading into a 3D API.

◆ glInternalformat

ktx_uint32_t ktxTextureCreateInfo::glInternalformat

Internal format for the texture, e.g., GL_RGB8. Ignored when creating a ktxTexture2.

◆ isArray

ktx_bool_t ktxTextureCreateInfo::isArray

Set to KTX_TRUE if the texture is to be an array texture. Means OpenGL will use a GL_TEXTURE_*_ARRAY target.

◆ numDimensions

ktx_uint32_t ktxTextureCreateInfo::numDimensions

Number of dimensions in the texture, 1, 2 or 3.

◆ numFaces

ktx_uint32_t ktxTextureCreateInfo::numFaces

Number of faces: 6 for cube maps, 1 otherwise.

◆ numLayers

ktx_uint32_t ktxTextureCreateInfo::numLayers

Number of array layers in the texture.

◆ numLevels

ktx_uint32_t ktxTextureCreateInfo::numLevels

Number of mip levels in the texture. Should be 1 if generateMipmaps is KTX_TRUE;

◆ pDfd

ktx_uint32_t* ktxTextureCreateInfo::pDfd

Pointer to DFD. Used only when creating a ktxTexture2 and only if vkFormat is VK_FORMAT_UNDEFINED.

◆ vkFormat

ktx_uint32_t ktxTextureCreateInfo::vkFormat

VkFormat for texture. Ignored when creating a ktxTexture1.