Package org.lwjgl.util.ktx
Class ktxTextureCreateInfo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ktxTextureCreateInfo.Buffer>
org.lwjgl.system.StructBuffer<ktxTextureCreateInfo,ktxTextureCreateInfo.Buffer>
org.lwjgl.util.ktx.ktxTextureCreateInfo.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<ktxTextureCreateInfo>,NativeResource,Pointer
- Enclosing class:
ktxTextureCreateInfo
public static class ktxTextureCreateInfo.Buffer
extends StructBuffer<ktxTextureCreateInfo,ktxTextureCreateInfo.Buffer>
implements NativeResource
An array of
ktxTextureCreateInfo structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newktxTextureCreateInfo.Bufferinstance backed by the specified container. -
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.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.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.@Nullable IntBufferpDfd(int capacity) Sets the address of the specifiedIntBufferto thepDfdfield.intvkFormat()vkFormat(int value) Sets the specified value to thevkFormatfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxTextureCreateInfo.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
ktxTextureCreateInfo.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
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.
-