Package org.lwjgl.util.ktx
Class ktxVulkanTexture_subAllocatorCallbacks
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<ktxVulkanTexture_subAllocatorCallbacks>
org.lwjgl.util.ktx.ktxVulkanTexture_subAllocatorCallbacks
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class ktxVulkanTexture_subAllocatorCallbacks
extends Struct<ktxVulkanTexture_subAllocatorCallbacks>
implements NativeResource
struct ktxVulkanTexture_subAllocatorCallbacks {
void * (* allocMemFuncPtr) (VkMemoryAllocateInfo * allocInfo, VkMemoryRequirements * memReq, uint64_t * pageCount);
void * (* bindBufferFuncPtr) (VkBuffer buffer, uint64_t allocId);
void * (* bindImageFuncPtr) (VkImage image, uint64_t allocId);
void * (* memoryMapFuncPtr) (uint64_t allocId, uint64_t pageNumber, VkDeviceSize * mapLength, void ** dataPtr);
void * (* memoryUnmapFuncPtr) (uint64_t allocId, uint64_t pageNumber);
void * (* freeMemFuncPtr) (uint64_t allocId);
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofktxVulkanTexture_subAllocatorCallbacks
structs.Nested 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionktxVulkanTexture_subAllocatorCallbacks
(ByteBuffer container) Creates aktxVulkanTexture_subAllocatorCallbacks
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionSets the specified value to theallocMemFuncPtr
field.Sets the specified value to thebindBufferFuncPtr
field.Sets the specified value to thebindImageFuncPtr
field.calloc()
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated withBufferUtils
.create
(int capacity) Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newktxVulkanTexture_subAllocatorCallbacks
instance for the specified memory address.create
(long address, int capacity) Create aktxVulkanTexture_subAllocatorCallbacks.Buffer
instance at the specified memory.static @Nullable ktxVulkanTexture_subAllocatorCallbacks
createSafe
(long address) static @Nullable ktxVulkanTexture_subAllocatorCallbacks.Buffer
createSafe
(long address, int capacity) Sets the specified value to thefreeMemFuncPtr
field.malloc()
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated on the specifiedMemoryStack
.Sets the specified value to thememoryMapFuncPtr
field.Sets the specified value to thememoryUnmapFuncPtr
field.nallocMemFuncPtr
(long struct) Unsafe version ofallocMemFuncPtr()
.static void
nallocMemFuncPtr
(long struct, ktxVulkanTexture_subAllocatorAllocMemFuncPtrI value) Unsafe version ofallocMemFuncPtr
.nbindBufferFuncPtr
(long struct) Unsafe version ofbindBufferFuncPtr()
.static void
nbindBufferFuncPtr
(long struct, ktxVulkanTexture_subAllocatorBindBufferFuncPtrI value) Unsafe version ofbindBufferFuncPtr
.nbindImageFuncPtr
(long struct) Unsafe version ofbindImageFuncPtr()
.static void
nbindImageFuncPtr
(long struct, ktxVulkanTexture_subAllocatorBindImageFuncPtrI value) Unsafe version ofbindImageFuncPtr
.nfreeMemFuncPtr
(long struct) Unsafe version offreeMemFuncPtr()
.static void
nfreeMemFuncPtr
(long struct, ktxVulkanTexture_subAllocatorFreeMemFuncPtrI value) Unsafe version offreeMemFuncPtr
.nmemoryMapFuncPtr
(long struct) Unsafe version ofmemoryMapFuncPtr()
.static void
nmemoryMapFuncPtr
(long struct, ktxVulkanTexture_subAllocatorMemoryMapFuncPtrI value) Unsafe version ofmemoryMapFuncPtr
.nmemoryUnmapFuncPtr
(long struct) Unsafe version ofmemoryUnmapFuncPtr()
.static void
nmemoryUnmapFuncPtr
(long struct, ktxVulkanTexture_subAllocatorMemoryUnmapFuncPtrI value) Unsafe version ofmemoryUnmapFuncPtr
.set
(ktxVulkanTexture_subAllocatorAllocMemFuncPtrI allocMemFuncPtr, ktxVulkanTexture_subAllocatorBindBufferFuncPtrI bindBufferFuncPtr, ktxVulkanTexture_subAllocatorBindImageFuncPtrI bindImageFuncPtr, ktxVulkanTexture_subAllocatorMemoryMapFuncPtrI memoryMapFuncPtr, ktxVulkanTexture_subAllocatorMemoryUnmapFuncPtrI memoryUnmapFuncPtr, ktxVulkanTexture_subAllocatorFreeMemFuncPtrI freeMemFuncPtr) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
ALLOCMEMFUNCPTR
public static final int ALLOCMEMFUNCPTRThe struct member offsets. -
BINDBUFFERFUNCPTR
public static final int BINDBUFFERFUNCPTRThe struct member offsets. -
BINDIMAGEFUNCPTR
public static final int BINDIMAGEFUNCPTRThe struct member offsets. -
MEMORYMAPFUNCPTR
public static final int MEMORYMAPFUNCPTRThe struct member offsets. -
MEMORYUNMAPFUNCPTR
public static final int MEMORYUNMAPFUNCPTRThe struct member offsets. -
FREEMEMFUNCPTR
public static final int FREEMEMFUNCPTRThe struct member offsets.
-
-
Constructor Details
-
ktxVulkanTexture_subAllocatorCallbacks
Creates aktxVulkanTexture_subAllocatorCallbacks
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<ktxVulkanTexture_subAllocatorCallbacks>
-
allocMemFuncPtr
- Returns:
- the value of the
allocMemFuncPtr
field.
-
bindBufferFuncPtr
- Returns:
- the value of the
bindBufferFuncPtr
field.
-
bindImageFuncPtr
- Returns:
- the value of the
bindImageFuncPtr
field.
-
memoryMapFuncPtr
- Returns:
- the value of the
memoryMapFuncPtr
field.
-
memoryUnmapFuncPtr
- Returns:
- the value of the
memoryUnmapFuncPtr
field.
-
freeMemFuncPtr
- Returns:
- the value of the
freeMemFuncPtr
field.
-
allocMemFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks allocMemFuncPtr(ktxVulkanTexture_subAllocatorAllocMemFuncPtrI value) Sets the specified value to theallocMemFuncPtr
field. -
bindBufferFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks bindBufferFuncPtr(ktxVulkanTexture_subAllocatorBindBufferFuncPtrI value) Sets the specified value to thebindBufferFuncPtr
field. -
bindImageFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks bindImageFuncPtr(ktxVulkanTexture_subAllocatorBindImageFuncPtrI value) Sets the specified value to thebindImageFuncPtr
field. -
memoryMapFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks memoryMapFuncPtr(ktxVulkanTexture_subAllocatorMemoryMapFuncPtrI value) Sets the specified value to thememoryMapFuncPtr
field. -
memoryUnmapFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks memoryUnmapFuncPtr(ktxVulkanTexture_subAllocatorMemoryUnmapFuncPtrI value) Sets the specified value to thememoryUnmapFuncPtr
field. -
freeMemFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks freeMemFuncPtr(ktxVulkanTexture_subAllocatorFreeMemFuncPtrI value) Sets the specified value to thefreeMemFuncPtr
field. -
set
public ktxVulkanTexture_subAllocatorCallbacks set(ktxVulkanTexture_subAllocatorAllocMemFuncPtrI allocMemFuncPtr, ktxVulkanTexture_subAllocatorBindBufferFuncPtrI bindBufferFuncPtr, ktxVulkanTexture_subAllocatorBindImageFuncPtrI bindImageFuncPtr, ktxVulkanTexture_subAllocatorMemoryMapFuncPtrI memoryMapFuncPtr, ktxVulkanTexture_subAllocatorMemoryUnmapFuncPtrI memoryUnmapFuncPtr, ktxVulkanTexture_subAllocatorFreeMemFuncPtrI freeMemFuncPtr) 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 newktxVulkanTexture_subAllocatorCallbacks
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated withBufferUtils
. -
create
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance for the specified memory address. -
createSafe
-
malloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aktxVulkanTexture_subAllocatorCallbacks.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable ktxVulkanTexture_subAllocatorCallbacks.Buffer createSafe(long address, int capacity) -
malloc
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacks
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nallocMemFuncPtr
Unsafe version ofallocMemFuncPtr()
. -
nbindBufferFuncPtr
Unsafe version ofbindBufferFuncPtr()
. -
nbindImageFuncPtr
Unsafe version ofbindImageFuncPtr()
. -
nmemoryMapFuncPtr
Unsafe version ofmemoryMapFuncPtr()
. -
nmemoryUnmapFuncPtr
Unsafe version ofmemoryUnmapFuncPtr()
. -
nfreeMemFuncPtr
Unsafe version offreeMemFuncPtr()
. -
nallocMemFuncPtr
public static void nallocMemFuncPtr(long struct, ktxVulkanTexture_subAllocatorAllocMemFuncPtrI value) Unsafe version ofallocMemFuncPtr
. -
nbindBufferFuncPtr
public static void nbindBufferFuncPtr(long struct, ktxVulkanTexture_subAllocatorBindBufferFuncPtrI value) Unsafe version ofbindBufferFuncPtr
. -
nbindImageFuncPtr
public static void nbindImageFuncPtr(long struct, ktxVulkanTexture_subAllocatorBindImageFuncPtrI value) Unsafe version ofbindImageFuncPtr
. -
nmemoryMapFuncPtr
public static void nmemoryMapFuncPtr(long struct, ktxVulkanTexture_subAllocatorMemoryMapFuncPtrI value) Unsafe version ofmemoryMapFuncPtr
. -
nmemoryUnmapFuncPtr
public static void nmemoryUnmapFuncPtr(long struct, ktxVulkanTexture_subAllocatorMemoryUnmapFuncPtrI value) Unsafe version ofmemoryUnmapFuncPtr
. -
nfreeMemFuncPtr
Unsafe version offreeMemFuncPtr
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-