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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aktxTextureCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
baseDepth
(int value) Sets the specified value to thebaseDepth
field.int
baseHeight
(int value) Sets the specified value to thebaseHeight
field.int
baseWidth
(int value) Sets the specified value to thebaseWidth
field.static ktxTextureCreateInfo
calloc()
Returns a newktxTextureCreateInfo
instance allocated withmemCalloc
.static ktxTextureCreateInfo.Buffer
calloc
(int capacity) Returns a newktxTextureCreateInfo.Buffer
instance allocated withmemCalloc
.static ktxTextureCreateInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newktxTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxTextureCreateInfo
calloc
(MemoryStack stack) Returns a newktxTextureCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxTextureCreateInfo
create()
Returns a newktxTextureCreateInfo
instance allocated withBufferUtils
.static ktxTextureCreateInfo.Buffer
create
(int capacity) Returns a newktxTextureCreateInfo.Buffer
instance allocated withBufferUtils
.static ktxTextureCreateInfo
create
(long address) Returns a newktxTextureCreateInfo
instance for the specified memory address.static ktxTextureCreateInfo.Buffer
create
(long address, int capacity) Create aktxTextureCreateInfo.Buffer
instance at the specified memory.static @Nullable ktxTextureCreateInfo
createSafe
(long address) static @Nullable ktxTextureCreateInfo.Buffer
createSafe
(long address, int capacity) boolean
generateMipmaps
(boolean value) Sets the specified value to thegenerateMipmaps
field.int
glInternalformat
(int value) Sets the specified value to theglInternalformat
field.boolean
isArray()
isArray
(boolean value) Sets the specified value to theisArray
field.static ktxTextureCreateInfo
malloc()
Returns a newktxTextureCreateInfo
instance allocated withmemAlloc
.static ktxTextureCreateInfo.Buffer
malloc
(int capacity) Returns a newktxTextureCreateInfo.Buffer
instance allocated withmemAlloc
.static ktxTextureCreateInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newktxTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static ktxTextureCreateInfo
malloc
(MemoryStack stack) Returns a newktxTextureCreateInfo
instance allocated on the specifiedMemoryStack
.static int
nbaseDepth
(long struct) Unsafe version ofbaseDepth()
.static void
nbaseDepth
(long struct, int value) Unsafe version ofbaseDepth
.static int
nbaseHeight
(long struct) Unsafe version ofbaseHeight()
.static void
nbaseHeight
(long struct, int value) Unsafe version ofbaseHeight
.static int
nbaseWidth
(long struct) Unsafe version ofbaseWidth()
.static void
nbaseWidth
(long struct, int value) Unsafe version ofbaseWidth
.static boolean
ngenerateMipmaps
(long struct) Unsafe version ofgenerateMipmaps()
.static void
ngenerateMipmaps
(long struct, boolean value) Unsafe version ofgenerateMipmaps
.static int
nglInternalformat
(long struct) Unsafe version ofglInternalformat()
.static void
nglInternalformat
(long struct, int value) Unsafe version ofglInternalformat
.static boolean
nisArray
(long struct) Unsafe version ofisArray()
.static void
nisArray
(long struct, boolean value) Unsafe version ofisArray
.static int
nnumDimensions
(long struct) Unsafe version ofnumDimensions()
.static void
nnumDimensions
(long struct, int value) Unsafe version ofnumDimensions
.static int
nnumFaces
(long struct) Unsafe version ofnumFaces()
.static void
nnumFaces
(long struct, int value) Unsafe version ofnumFaces
.static int
nnumLayers
(long struct) Unsafe version ofnumLayers()
.static void
nnumLayers
(long struct, int value) Unsafe version ofnumLayers
.static int
nnumLevels
(long struct) Unsafe version ofnumLevels()
.static void
nnumLevels
(long struct, int value) Unsafe version ofnumLevels
.static @Nullable IntBuffer
npDfd
(long struct, int capacity) Unsafe version ofpDfd
.static void
Unsafe version ofpDfd
.int
numDimensions
(int value) Sets the specified value to thenumDimensions
field.int
numFaces()
numFaces
(int value) Sets the specified value to thenumFaces
field.int
numLayers
(int value) Sets the specified value to thenumLayers
field.int
numLevels
(int value) Sets the specified value to thenumLevels
field.static int
nvkFormat
(long struct) Unsafe version ofvkFormat()
.static void
nvkFormat
(long struct, int value) Unsafe version ofvkFormat
.@Nullable IntBuffer
pDfd
(int capacity) Sets the address of the specifiedIntBuffer
to thepDfd
field.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.int
sizeof()
Returnssizeof(struct)
.int
vkFormat()
vkFormat
(int value) Sets the specified value to thevkFormat
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aktxTextureCreateInfo
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ktxTextureCreateInfo>
-
glInternalformat
public int glInternalformat()- Returns:
- the value of the
glInternalformat
field.
-
vkFormat
public int vkFormat()- Returns:
- the value of the
vkFormat
field.
-
pDfd
- Returns:
- a
IntBuffer
view of the data pointed to by thepDfd
field.
-
baseWidth
public int baseWidth()- Returns:
- the value of the
baseWidth
field.
-
baseHeight
public int baseHeight()- Returns:
- the value of the
baseHeight
field.
-
baseDepth
public int baseDepth()- Returns:
- the value of the
baseDepth
field.
-
numDimensions
public int numDimensions()- Returns:
- the value of the
numDimensions
field.
-
numLevels
public int numLevels()- Returns:
- the value of the
numLevels
field.
-
numLayers
public int numLayers()- Returns:
- the value of the
numLayers
field.
-
numFaces
public int numFaces()- Returns:
- the value of the
numFaces
field.
-
isArray
public boolean isArray()- Returns:
- the value of the
isArray
field.
-
generateMipmaps
public boolean generateMipmaps()- Returns:
- the value of the
generateMipmaps
field.
-
glInternalformat
Sets the specified value to theglInternalformat
field. -
vkFormat
Sets the specified value to thevkFormat
field. -
pDfd
Sets the address of the specifiedIntBuffer
to thepDfd
field. -
baseWidth
Sets the specified value to thebaseWidth
field. -
baseHeight
Sets the specified value to thebaseHeight
field. -
baseDepth
Sets the specified value to thebaseDepth
field. -
numDimensions
Sets the specified value to thenumDimensions
field. -
numLevels
Sets the specified value to thenumLevels
field. -
numLayers
Sets the specified value to thenumLayers
field. -
numFaces
Sets the specified value to thenumFaces
field. -
isArray
Sets the specified value to theisArray
field. -
generateMipmaps
Sets the specified value to thegenerateMipmaps
field. -
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 newktxTextureCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newktxTextureCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newktxTextureCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newktxTextureCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newktxTextureCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newktxTextureCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newktxTextureCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aktxTextureCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newktxTextureCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newktxTextureCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newktxTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newktxTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-