Top Description Inners Fields Constructors Methods
org.lwjgl.util.ktx

public Class ktxTextureCreateInfo

extends Struct<ktxTextureCreateInfo>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure for passing texture information to Texture1_Create and Texture2_Create.

Layout


struct ktxTextureCreateInfo {
    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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BASEDEPTH

The struct member offsets.

public static final int
BASEHEIGHT

The struct member offsets.

public static final int
BASEWIDTH

The struct member offsets.

public static final int
GENERATEMIPMAPS

The struct member offsets.

public static final int
GLINTERNALFORMAT

The struct member offsets.

public static final int
ISARRAY

The struct member offsets.

public static final int
NUMDIMENSIONS

The struct member offsets.

public static final int
NUMFACES

The struct member offsets.

public static final int
NUMLAYERS

The struct member offsets.

public static final int
NUMLEVELS

The struct member offsets.

public static final int
PDFD

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
VKFORMAT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
ktxTextureCreateInfo(long address, ByteBuffer container)

public
ktxTextureCreateInfo(ByteBuffer container)

Creates a ktxTextureCreateInfo instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
baseDepth()

depth of the base level of the texture

public ktxTextureCreateInfo
baseDepth(int value)

Sets the specified value to the baseDepth field.

public int
baseHeight()

height of the base level of the texture

public ktxTextureCreateInfo
baseHeight(int value)

Sets the specified value to the baseHeight field.

public int
baseWidth()

width of the base level of the texture

public ktxTextureCreateInfo
baseWidth(int value)

Sets the specified value to the baseWidth field.

public static ktxTextureCreateInfo
calloc()

Returns a new ktxTextureCreateInfo instance allocated with memCalloc.

public static ktxTextureCreateInfo.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new ktxTextureCreateInfo.Buffer instance allocated with memCalloc.

public static ktxTextureCreateInfo
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxTextureCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ktxTextureCreateInfo.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxTextureCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected ktxTextureCreateInfo
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static ktxTextureCreateInfo
create()

Returns a new ktxTextureCreateInfo instance allocated with BufferUtils.

public static ktxTextureCreateInfo
create(long address)

Returns a new ktxTextureCreateInfo instance for the specified memory address.

public static ktxTextureCreateInfo.Buffer
create(int
the buffer capacity
capacity
)

Returns a new ktxTextureCreateInfo.Buffer instance allocated with BufferUtils.

public static ktxTextureCreateInfo.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a ktxTextureCreateInfo.Buffer instance at the specified memory.

public static ktxTextureCreateInfo
createSafe(long address)

Like create, but returns null if address is NULL.

public static ktxTextureCreateInfo.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public boolean
generateMipmaps()

set to TRUE if mipmaps should be generated for the texture when loading into a 3D API

public ktxTextureCreateInfo
generateMipmaps(boolean value)

Sets the specified value to the generateMipmaps field.

public int
glInternalformat()

internal format for the texture, e.g., GL_RGB8.

public ktxTextureCreateInfo
glInternalformat(int value)

Sets the specified value to the glInternalformat field.

public boolean
isArray()

set to TRUE if the texture is to be an array texture.

public ktxTextureCreateInfo
isArray(boolean value)

Sets the specified value to the isArray field.

public static ktxTextureCreateInfo
malloc()

Returns a new ktxTextureCreateInfo instance allocated with memAlloc.

public static ktxTextureCreateInfo.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new ktxTextureCreateInfo.Buffer instance allocated with memAlloc.

public static ktxTextureCreateInfo
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxTextureCreateInfo instance allocated on the specified MemoryStack.

public static ktxTextureCreateInfo.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxTextureCreateInfo.Buffer instance allocated on the specified MemoryStack.

public static int
nbaseDepth(long struct)

Unsafe version of baseDepth.

public static void
nbaseDepth(long struct, int value)

Unsafe version of baseDepth.

public static int
nbaseHeight(long struct)

Unsafe version of baseHeight.

public static void
nbaseHeight(long struct, int value)

Unsafe version of baseHeight.

public static int
nbaseWidth(long struct)

Unsafe version of baseWidth.

public static void
nbaseWidth(long struct, int value)

Unsafe version of baseWidth.

public static boolean
ngenerateMipmaps(long struct)

Unsafe version of generateMipmaps.

public static void
ngenerateMipmaps(long struct, boolean value)

Unsafe version of generateMipmaps.

public static int
nglInternalformat(long struct)

Unsafe version of glInternalformat.

public static void
nglInternalformat(long struct, int value)

Unsafe version of glInternalformat.

public static boolean
nisArray(long struct)

Unsafe version of isArray.

public static void
nisArray(long struct, boolean value)

Unsafe version of isArray.

public static int
nnumDimensions(long struct)

Unsafe version of numDimensions.

public static void
nnumDimensions(long struct, int value)

Unsafe version of numDimensions.

public static int
nnumFaces(long struct)

Unsafe version of numFaces.

public static void
nnumFaces(long struct, int value)

Unsafe version of numFaces.

public static int
nnumLayers(long struct)

Unsafe version of numLayers.

public static void
nnumLayers(long struct, int value)

Unsafe version of numLayers.

public static int
nnumLevels(long struct)

Unsafe version of numLevels.

public static void
nnumLevels(long struct, int value)

Unsafe version of numLevels.

public static IntBuffer
npDfd(long struct, int capacity)

Unsafe version of pDfd.

public static void
npDfd(long struct, IntBuffer value)

Unsafe version of pDfd.

public int
numDimensions()

number of dimensions in the texture, 1, 2 or 3

public ktxTextureCreateInfo
numDimensions(int value)

Sets the specified value to the numDimensions field.

public int
numFaces()

number of faces: 6 for cube maps, 1 otherwise

public ktxTextureCreateInfo
numFaces(int value)

Sets the specified value to the numFaces field.

public int
numLayers()

number of array layers in the texture

public ktxTextureCreateInfo
numLayers(int value)

Sets the specified value to the numLayers field.

public int
numLevels()

number of mip levels in the texture.

public ktxTextureCreateInfo
numLevels(int value)

Sets the specified value to the numLevels field.

public static int
nvkFormat(long struct)

Unsafe version of vkFormat.

public static void
nvkFormat(long struct, int value)

Unsafe version of vkFormat.

public IntBuffer

Returns:

pointer to DFD. Used only when creating a ktxTexture2 and only if vkFormat is VK_FORMAT_UNDEFINED.
pDfd
(int
the number of elements in the returned buffer
capacity
)

public ktxTextureCreateInfo
pDfd(IntBuffer value)

Sets the address of the specified IntBuffer to the pDfd field.

public ktxTextureCreateInfo
set(int glInternalformat, int vkFormat, IntBuffer pDfd, int baseWidth, int baseHeight, int baseDepth, int numDimensions, int numLevels, int numLayers, int numFaces, boolean isArray, boolean generateMipmaps)

Initializes this struct with the specified values.

public ktxTextureCreateInfo

Returns:

this struct
set
(ktxTextureCreateInfo
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
vkFormat()

vkFormat for texture.

public ktxTextureCreateInfo
vkFormat(int value)

Sets the specified value to the vkFormat field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate