Package org.lwjgl.util.ktx
Class ktxTextureCreateInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionktxTextureCreateInfo(ByteBuffer container) Creates aktxTextureCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbaseDepth(int value) Sets the specified value to thebaseDepthfield.intbaseHeight(int value) Sets the specified value to thebaseHeightfield.intbaseWidth(int value) Sets the specified value to thebaseWidthfield.static ktxTextureCreateInfocalloc()Returns a newktxTextureCreateInfoinstance allocated withmemCalloc.static ktxTextureCreateInfo.Buffercalloc(int capacity) Returns a newktxTextureCreateInfo.Bufferinstance allocated withmemCalloc.static ktxTextureCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newktxTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxTextureCreateInfocalloc(MemoryStack stack) Returns a newktxTextureCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxTextureCreateInfocreate()Returns a newktxTextureCreateInfoinstance allocated withBufferUtils.static ktxTextureCreateInfo.Buffercreate(int capacity) Returns a newktxTextureCreateInfo.Bufferinstance allocated withBufferUtils.static ktxTextureCreateInfocreate(long address) Returns a newktxTextureCreateInfoinstance for the specified memory address.static ktxTextureCreateInfo.Buffercreate(long address, int capacity) Create aktxTextureCreateInfo.Bufferinstance at the specified memory.static @Nullable ktxTextureCreateInfocreateSafe(long address) static @Nullable ktxTextureCreateInfo.BuffercreateSafe(long address, int capacity) booleangenerateMipmaps(boolean value) Sets the specified value to thegenerateMipmapsfield.intglInternalformat(int value) Sets the specified value to theglInternalformatfield.booleanisArray()isArray(boolean value) Sets the specified value to theisArrayfield.static ktxTextureCreateInfomalloc()Returns a newktxTextureCreateInfoinstance allocated withmemAlloc.static ktxTextureCreateInfo.Buffermalloc(int capacity) Returns a newktxTextureCreateInfo.Bufferinstance allocated withmemAlloc.static ktxTextureCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newktxTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static ktxTextureCreateInfomalloc(MemoryStack stack) Returns a newktxTextureCreateInfoinstance allocated on the specifiedMemoryStack.static intnbaseDepth(long struct) Unsafe version ofbaseDepth().static voidnbaseDepth(long struct, int value) Unsafe version ofbaseDepth.static intnbaseHeight(long struct) Unsafe version ofbaseHeight().static voidnbaseHeight(long struct, int value) Unsafe version ofbaseHeight.static intnbaseWidth(long struct) Unsafe version ofbaseWidth().static voidnbaseWidth(long struct, int value) Unsafe version ofbaseWidth.static booleanngenerateMipmaps(long struct) Unsafe version ofgenerateMipmaps().static voidngenerateMipmaps(long struct, boolean value) Unsafe version ofgenerateMipmaps.static intnglInternalformat(long struct) Unsafe version ofglInternalformat().static voidnglInternalformat(long struct, int value) Unsafe version ofglInternalformat.static booleannisArray(long struct) Unsafe version ofisArray().static voidnisArray(long struct, boolean value) Unsafe version ofisArray.static intnnumDimensions(long struct) Unsafe version ofnumDimensions().static voidnnumDimensions(long struct, int value) Unsafe version ofnumDimensions.static intnnumFaces(long struct) Unsafe version ofnumFaces().static voidnnumFaces(long struct, int value) Unsafe version ofnumFaces.static intnnumLayers(long struct) Unsafe version ofnumLayers().static voidnnumLayers(long struct, int value) Unsafe version ofnumLayers.static intnnumLevels(long struct) Unsafe version ofnumLevels().static voidnnumLevels(long struct, int value) Unsafe version ofnumLevels.static @Nullable IntBuffernpDfd(long struct, int capacity) Unsafe version ofpDfd.static voidUnsafe version ofpDfd.intnumDimensions(int value) Sets the specified value to thenumDimensionsfield.intnumFaces()numFaces(int value) Sets the specified value to thenumFacesfield.intnumLayers(int value) Sets the specified value to thenumLayersfield.intnumLevels(int value) Sets the specified value to thenumLevelsfield.static intnvkFormat(long struct) Unsafe version ofvkFormat().static voidnvkFormat(long struct, int value) Unsafe version ofvkFormat.@Nullable IntBufferpDfd(int capacity) Sets the address of the specifiedIntBufferto thepDfdfield.set(int glInternalformat, int vkFormat, @Nullable 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.set(ktxTextureCreateInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intvkFormat()vkFormat(int value) Sets the specified value to thevkFormatfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
GLINTERNALFORMAT
public static final int GLINTERNALFORMATThe struct member offsets. -
VKFORMAT
public static final int VKFORMATThe struct member offsets. -
PDFD
public static final int PDFDThe struct member offsets. -
BASEWIDTH
public static final int BASEWIDTHThe struct member offsets. -
BASEHEIGHT
public static final int BASEHEIGHTThe struct member offsets. -
BASEDEPTH
public static final int BASEDEPTHThe struct member offsets. -
NUMDIMENSIONS
public static final int NUMDIMENSIONSThe struct member offsets. -
NUMLEVELS
public static final int NUMLEVELSThe struct member offsets. -
NUMLAYERS
public static final int NUMLAYERSThe struct member offsets. -
NUMFACES
public static final int NUMFACESThe struct member offsets. -
ISARRAY
public static final int ISARRAYThe struct member offsets. -
GENERATEMIPMAPS
public static final int GENERATEMIPMAPSThe struct member offsets.
-
-
Constructor Details
-
ktxTextureCreateInfo
Creates aktxTextureCreateInfoinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ktxTextureCreateInfo>
-
glInternalformat
public int glInternalformat()- Returns:
- the value of the
glInternalformatfield.
-
vkFormat
public int vkFormat()- Returns:
- the value of the
vkFormatfield.
-
pDfd
- Returns:
- a
IntBufferview of the data pointed to by thepDfdfield.
-
baseWidth
public int baseWidth()- Returns:
- the value of the
baseWidthfield.
-
baseHeight
public int baseHeight()- Returns:
- the value of the
baseHeightfield.
-
baseDepth
public int baseDepth()- Returns:
- the value of the
baseDepthfield.
-
numDimensions
public int numDimensions()- Returns:
- the value of the
numDimensionsfield.
-
numLevels
public int numLevels()- Returns:
- the value of the
numLevelsfield.
-
numLayers
public int numLayers()- Returns:
- the value of the
numLayersfield.
-
numFaces
public int numFaces()- Returns:
- the value of the
numFacesfield.
-
isArray
public boolean isArray()- Returns:
- the value of the
isArrayfield.
-
generateMipmaps
public boolean generateMipmaps()- Returns:
- the value of the
generateMipmapsfield.
-
glInternalformat
Sets the specified value to theglInternalformatfield. -
vkFormat
Sets the specified value to thevkFormatfield. -
pDfd
Sets the address of the specifiedIntBufferto thepDfdfield. -
baseWidth
Sets the specified value to thebaseWidthfield. -
baseHeight
Sets the specified value to thebaseHeightfield. -
baseDepth
Sets the specified value to thebaseDepthfield. -
numDimensions
Sets the specified value to thenumDimensionsfield. -
numLevels
Sets the specified value to thenumLevelsfield. -
numLayers
Sets the specified value to thenumLayersfield. -
numFaces
Sets the specified value to thenumFacesfield. -
isArray
Sets the specified value to theisArrayfield. -
generateMipmaps
Sets the specified value to thegenerateMipmapsfield. -
set
public ktxTextureCreateInfo set(int glInternalformat, int vkFormat, @Nullable 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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newktxTextureCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newktxTextureCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newktxTextureCreateInfoinstance allocated withBufferUtils. -
create
Returns a newktxTextureCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newktxTextureCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newktxTextureCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newktxTextureCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aktxTextureCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newktxTextureCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newktxTextureCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newktxTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newktxTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nglInternalformat
public static int nglInternalformat(long struct) Unsafe version ofglInternalformat(). -
nvkFormat
public static int nvkFormat(long struct) Unsafe version ofvkFormat(). -
npDfd
Unsafe version ofpDfd. -
nbaseWidth
public static int nbaseWidth(long struct) Unsafe version ofbaseWidth(). -
nbaseHeight
public static int nbaseHeight(long struct) Unsafe version ofbaseHeight(). -
nbaseDepth
public static int nbaseDepth(long struct) Unsafe version ofbaseDepth(). -
nnumDimensions
public static int nnumDimensions(long struct) Unsafe version ofnumDimensions(). -
nnumLevels
public static int nnumLevels(long struct) Unsafe version ofnumLevels(). -
nnumLayers
public static int nnumLayers(long struct) Unsafe version ofnumLayers(). -
nnumFaces
public static int nnumFaces(long struct) Unsafe version ofnumFaces(). -
nisArray
public static boolean nisArray(long struct) Unsafe version ofisArray(). -
ngenerateMipmaps
public static boolean ngenerateMipmaps(long struct) Unsafe version ofgenerateMipmaps(). -
nglInternalformat
public static void nglInternalformat(long struct, int value) Unsafe version ofglInternalformat. -
nvkFormat
public static void nvkFormat(long struct, int value) Unsafe version ofvkFormat. -
npDfd
Unsafe version ofpDfd. -
nbaseWidth
public static void nbaseWidth(long struct, int value) Unsafe version ofbaseWidth. -
nbaseHeight
public static void nbaseHeight(long struct, int value) Unsafe version ofbaseHeight. -
nbaseDepth
public static void nbaseDepth(long struct, int value) Unsafe version ofbaseDepth. -
nnumDimensions
public static void nnumDimensions(long struct, int value) Unsafe version ofnumDimensions. -
nnumLevels
public static void nnumLevels(long struct, int value) Unsafe version ofnumLevels. -
nnumLayers
public static void nnumLayers(long struct, int value) Unsafe version ofnumLayers. -
nnumFaces
public static void nnumFaces(long struct, int value) Unsafe version ofnumFaces. -
nisArray
public static void nisArray(long struct, boolean value) Unsafe version ofisArray. -
ngenerateMipmaps
public static void ngenerateMipmaps(long struct, boolean value) Unsafe version ofgenerateMipmaps.
-