Package org.lwjgl.util.ktx
Class ktxVulkanTexture
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct ktxVulkanTexture {
PFN_vkDestroyImage vkDestroyImage;
PFN_vkFreeMemory vkFreeMemory;
VkImage image;
VkFormat imageFormat;
VkImageLayout imageLayout;
VkDeviceMemory deviceMemory;
VkImageViewType viewType;
uint32_t width;
uint32_t height;
uint32_t depth;
uint32_t levelCount;
uint32_t layerCount;
uint64_t allocationId;
}-
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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionktxVulkanTexture(ByteBuffer container) Creates aktxVulkanTextureinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongstatic ktxVulkanTexturecalloc()Returns a newktxVulkanTextureinstance allocated withmemCalloc.static ktxVulkanTexture.Buffercalloc(int capacity) Returns a newktxVulkanTexture.Bufferinstance allocated withmemCalloc.static ktxVulkanTexture.Buffercalloc(int capacity, MemoryStack stack) Returns a newktxVulkanTexture.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxVulkanTexturecalloc(MemoryStack stack) Returns a newktxVulkanTextureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxVulkanTexturecreate()Returns a newktxVulkanTextureinstance allocated withBufferUtils.static ktxVulkanTexture.Buffercreate(int capacity) Returns a newktxVulkanTexture.Bufferinstance allocated withBufferUtils.static ktxVulkanTexturecreate(long address) Returns a newktxVulkanTextureinstance for the specified memory address.static ktxVulkanTexture.Buffercreate(long address, int capacity) Create aktxVulkanTexture.Bufferinstance at the specified memory.static @Nullable ktxVulkanTexturecreateSafe(long address) static @Nullable ktxVulkanTexture.BuffercreateSafe(long address, int capacity) intdepth()longintheight()longimage()intintintintstatic ktxVulkanTexturemalloc()Returns a newktxVulkanTextureinstance allocated withmemAlloc.static ktxVulkanTexture.Buffermalloc(int capacity) Returns a newktxVulkanTexture.Bufferinstance allocated withmemAlloc.static ktxVulkanTexture.Buffermalloc(int capacity, MemoryStack stack) Returns a newktxVulkanTexture.Bufferinstance allocated on the specifiedMemoryStack.static ktxVulkanTexturemalloc(MemoryStack stack) Returns a newktxVulkanTextureinstance allocated on the specifiedMemoryStack.static longnallocationId(long struct) Unsafe version ofallocationId().static intndepth(long struct) Unsafe version ofdepth().static longndeviceMemory(long struct) Unsafe version ofdeviceMemory().static intnheight(long struct) Unsafe version ofheight().static longnimage(long struct) Unsafe version ofimage().static intnimageFormat(long struct) Unsafe version ofimageFormat().static intnimageLayout(long struct) Unsafe version ofimageLayout().static intnlayerCount(long struct) Unsafe version oflayerCount().static intnlevelCount(long struct) Unsafe version oflevelCount().static intnviewType(long struct) Unsafe version ofviewType().static longnvkDestroyImage(long struct) Unsafe version ofvkDestroyImage().static longnvkFreeMemory(long struct) Unsafe version ofvkFreeMemory().static intnwidth(long struct) Unsafe version ofwidth().intsizeof()Returnssizeof(struct).intviewType()longlongintwidth()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. -
VKDESTROYIMAGE
public static final int VKDESTROYIMAGEThe struct member offsets. -
VKFREEMEMORY
public static final int VKFREEMEMORYThe struct member offsets. -
IMAGE
public static final int IMAGEThe struct member offsets. -
IMAGEFORMAT
public static final int IMAGEFORMATThe struct member offsets. -
IMAGELAYOUT
public static final int IMAGELAYOUTThe struct member offsets. -
DEVICEMEMORY
public static final int DEVICEMEMORYThe struct member offsets. -
VIEWTYPE
public static final int VIEWTYPEThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
LEVELCOUNT
public static final int LEVELCOUNTThe struct member offsets. -
LAYERCOUNT
public static final int LAYERCOUNTThe struct member offsets. -
ALLOCATIONID
public static final int ALLOCATIONIDThe struct member offsets.
-
-
Constructor Details
-
ktxVulkanTexture
Creates aktxVulkanTextureinstance 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<ktxVulkanTexture>
-
vkDestroyImage
public long vkDestroyImage()- Returns:
- the value of the
vkDestroyImagefield.
-
vkFreeMemory
public long vkFreeMemory()- Returns:
- the value of the
vkFreeMemoryfield.
-
image
public long image()- Returns:
- the value of the
imagefield.
-
imageFormat
public int imageFormat()- Returns:
- the value of the
imageFormatfield.
-
imageLayout
public int imageLayout()- Returns:
- the value of the
imageLayoutfield.
-
deviceMemory
public long deviceMemory()- Returns:
- the value of the
deviceMemoryfield.
-
viewType
public int viewType()- Returns:
- the value of the
viewTypefield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
depth
public int depth()- Returns:
- the value of the
depthfield.
-
levelCount
public int levelCount()- Returns:
- the value of the
levelCountfield.
-
layerCount
public int layerCount()- Returns:
- the value of the
layerCountfield.
-
allocationId
public long allocationId()- Returns:
- the value of the
allocationIdfield.
-
malloc
Returns a newktxVulkanTextureinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newktxVulkanTextureinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newktxVulkanTextureinstance allocated withBufferUtils. -
create
Returns a newktxVulkanTextureinstance for the specified memory address. -
createSafe
-
malloc
Returns a newktxVulkanTexture.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newktxVulkanTexture.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newktxVulkanTexture.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aktxVulkanTexture.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newktxVulkanTextureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newktxVulkanTextureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newktxVulkanTexture.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newktxVulkanTexture.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvkDestroyImage
public static long nvkDestroyImage(long struct) Unsafe version ofvkDestroyImage(). -
nvkFreeMemory
public static long nvkFreeMemory(long struct) Unsafe version ofvkFreeMemory(). -
nimage
public static long nimage(long struct) Unsafe version ofimage(). -
nimageFormat
public static int nimageFormat(long struct) Unsafe version ofimageFormat(). -
nimageLayout
public static int nimageLayout(long struct) Unsafe version ofimageLayout(). -
ndeviceMemory
public static long ndeviceMemory(long struct) Unsafe version ofdeviceMemory(). -
nviewType
public static int nviewType(long struct) Unsafe version ofviewType(). -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static int nheight(long struct) Unsafe version ofheight(). -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth(). -
nlevelCount
public static int nlevelCount(long struct) Unsafe version oflevelCount(). -
nlayerCount
public static int nlayerCount(long struct) Unsafe version oflayerCount(). -
nallocationId
public static long nallocationId(long struct) Unsafe version ofallocationId().
-