libktx Reference 4.3.2
Libraries and tools to create and read KTX image texture files.
Loading...
Searching...
No Matches
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()
ktxTexture2_Create()

Field Documentation

◆ baseDepth

ktx_uint32_t baseDepth

Depth of the base level of the texture.

◆ baseHeight

ktx_uint32_t baseHeight

Height of the base level of the texture.

◆ baseWidth

ktx_uint32_t baseWidth

Width of the base level of the texture.

◆ generateMipmaps

ktx_bool_t generateMipmaps

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

◆ glInternalformat

ktx_uint32_t glInternalformat

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

◆ isArray

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.

◆ numDimensions

ktx_uint32_t numDimensions

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

◆ numFaces

ktx_uint32_t numFaces

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

◆ numLayers

ktx_uint32_t numLayers

Number of array layers in the texture.

◆ numLevels

ktx_uint32_t numLevels

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

◆ pDfd

ktx_uint32_t* pDfd

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

◆ vkFormat

ktx_uint32_t vkFormat

VkFormat for texture. Ignored when creating a ktxTexture1.