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 classAn array ofktxVulkanTexture_subAllocatorCallbacksstructs.Nested 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 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_subAllocatorCallbacksinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionSets the specified value to theallocMemFuncPtrfield.Sets the specified value to thebindBufferFuncPtrfield.Sets the specified value to thebindImageFuncPtrfield.calloc()Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated withmemCalloc.calloc(int capacity) Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated withBufferUtils.create(int capacity) Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated withBufferUtils.create(long address) Returns a newktxVulkanTexture_subAllocatorCallbacksinstance for the specified memory address.create(long address, int capacity) Create aktxVulkanTexture_subAllocatorCallbacks.Bufferinstance at the specified memory.static @Nullable ktxVulkanTexture_subAllocatorCallbackscreateSafe(long address) static @Nullable ktxVulkanTexture_subAllocatorCallbacks.BuffercreateSafe(long address, int capacity) Sets the specified value to thefreeMemFuncPtrfield.malloc()Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated withmemAlloc.malloc(int capacity) Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated on the specifiedMemoryStack.Sets the specified value to thememoryMapFuncPtrfield.Sets the specified value to thememoryUnmapFuncPtrfield.nallocMemFuncPtr(long struct) Unsafe version ofallocMemFuncPtr().static voidnallocMemFuncPtr(long struct, ktxVulkanTexture_subAllocatorAllocMemFuncPtrI value) Unsafe version ofallocMemFuncPtr.nbindBufferFuncPtr(long struct) Unsafe version ofbindBufferFuncPtr().static voidnbindBufferFuncPtr(long struct, ktxVulkanTexture_subAllocatorBindBufferFuncPtrI value) Unsafe version ofbindBufferFuncPtr.nbindImageFuncPtr(long struct) Unsafe version ofbindImageFuncPtr().static voidnbindImageFuncPtr(long struct, ktxVulkanTexture_subAllocatorBindImageFuncPtrI value) Unsafe version ofbindImageFuncPtr.nfreeMemFuncPtr(long struct) Unsafe version offreeMemFuncPtr().static voidnfreeMemFuncPtr(long struct, ktxVulkanTexture_subAllocatorFreeMemFuncPtrI value) Unsafe version offreeMemFuncPtr.nmemoryMapFuncPtr(long struct) Unsafe version ofmemoryMapFuncPtr().static voidnmemoryMapFuncPtr(long struct, ktxVulkanTexture_subAllocatorMemoryMapFuncPtrI value) Unsafe version ofmemoryMapFuncPtr.nmemoryUnmapFuncPtr(long struct) Unsafe version ofmemoryUnmapFuncPtr().static voidnmemoryUnmapFuncPtr(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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
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_subAllocatorCallbacksinstance 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_subAllocatorCallbacks>
-
allocMemFuncPtr
- Returns:
- the value of the
allocMemFuncPtrfield.
-
bindBufferFuncPtr
- Returns:
- the value of the
bindBufferFuncPtrfield.
-
bindImageFuncPtr
- Returns:
- the value of the
bindImageFuncPtrfield.
-
memoryMapFuncPtr
- Returns:
- the value of the
memoryMapFuncPtrfield.
-
memoryUnmapFuncPtr
- Returns:
- the value of the
memoryUnmapFuncPtrfield.
-
freeMemFuncPtr
- Returns:
- the value of the
freeMemFuncPtrfield.
-
allocMemFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks allocMemFuncPtr(ktxVulkanTexture_subAllocatorAllocMemFuncPtrI value) Sets the specified value to theallocMemFuncPtrfield. -
bindBufferFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks bindBufferFuncPtr(ktxVulkanTexture_subAllocatorBindBufferFuncPtrI value) Sets the specified value to thebindBufferFuncPtrfield. -
bindImageFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks bindImageFuncPtr(ktxVulkanTexture_subAllocatorBindImageFuncPtrI value) Sets the specified value to thebindImageFuncPtrfield. -
memoryMapFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks memoryMapFuncPtr(ktxVulkanTexture_subAllocatorMemoryMapFuncPtrI value) Sets the specified value to thememoryMapFuncPtrfield. -
memoryUnmapFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks memoryUnmapFuncPtr(ktxVulkanTexture_subAllocatorMemoryUnmapFuncPtrI value) Sets the specified value to thememoryUnmapFuncPtrfield. -
freeMemFuncPtr
public ktxVulkanTexture_subAllocatorCallbacks freeMemFuncPtr(ktxVulkanTexture_subAllocatorFreeMemFuncPtrI value) Sets the specified value to thefreeMemFuncPtrfield. -
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_subAllocatorCallbacksinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated withBufferUtils. -
create
Returns a newktxVulkanTexture_subAllocatorCallbacksinstance for the specified memory address. -
createSafe
-
malloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aktxVulkanTexture_subAllocatorCallbacks.Bufferinstance 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_subAllocatorCallbacksinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newktxVulkanTexture_subAllocatorCallbacks.Bufferinstance allocated on the specifiedMemoryStackand 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
-