Package org.lwjgl.util.vma
Class VmaPoolCreateInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VmaPoolCreateInfo {
uint32_t memoryTypeIndex;
VmaPoolCreateFlags flags;
VkDeviceSize blockSize;
size_t minBlockCount;
size_t maxBlockCount;
float priority;
VkDeviceSize minAllocationAlignment;
void * pMemoryAllocateNext;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVmaPoolCreateInfo(ByteBuffer container) Creates aVmaPoolCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongblockSize(long value) Sets the specified value to theblockSizefield.static VmaPoolCreateInfocalloc()Returns a newVmaPoolCreateInfoinstance allocated withmemCalloc.static VmaPoolCreateInfo.Buffercalloc(int capacity) Returns a newVmaPoolCreateInfo.Bufferinstance allocated withmemCalloc.static VmaPoolCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVmaPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaPoolCreateInfocalloc(MemoryStack stack) Returns a newVmaPoolCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaPoolCreateInfocreate()Returns a newVmaPoolCreateInfoinstance allocated withBufferUtils.static VmaPoolCreateInfo.Buffercreate(int capacity) Returns a newVmaPoolCreateInfo.Bufferinstance allocated withBufferUtils.static VmaPoolCreateInfocreate(long address) Returns a newVmaPoolCreateInfoinstance for the specified memory address.static VmaPoolCreateInfo.Buffercreate(long address, int capacity) Create aVmaPoolCreateInfo.Bufferinstance at the specified memory.static @Nullable VmaPoolCreateInfocreateSafe(long address) static @Nullable VmaPoolCreateInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static VmaPoolCreateInfomalloc()Returns a newVmaPoolCreateInfoinstance allocated withmemAlloc.static VmaPoolCreateInfo.Buffermalloc(int capacity) Returns a newVmaPoolCreateInfo.Bufferinstance allocated withmemAlloc.static VmaPoolCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVmaPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaPoolCreateInfomalloc(MemoryStack stack) Returns a newVmaPoolCreateInfoinstance allocated on the specifiedMemoryStack.longmaxBlockCount(long value) Sets the specified value to themaxBlockCountfield.intmemoryTypeIndex(int value) Sets the specified value to thememoryTypeIndexfield.longminAllocationAlignment(long value) Sets the specified value to theminAllocationAlignmentfield.longminBlockCount(long value) Sets the specified value to theminBlockCountfield.static longnblockSize(long struct) Unsafe version ofblockSize().static voidnblockSize(long struct, long value) Unsafe version ofblockSize.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnmaxBlockCount(long struct) Unsafe version ofmaxBlockCount().static voidnmaxBlockCount(long struct, long value) Unsafe version ofmaxBlockCount.static intnmemoryTypeIndex(long struct) Unsafe version ofmemoryTypeIndex().static voidnmemoryTypeIndex(long struct, int value) Unsafe version ofmemoryTypeIndex.static longnminAllocationAlignment(long struct) Unsafe version ofminAllocationAlignment().static voidnminAllocationAlignment(long struct, long value) Unsafe version ofminAllocationAlignment.static longnminBlockCount(long struct) Unsafe version ofminBlockCount().static voidnminBlockCount(long struct, long value) Unsafe version ofminBlockCount.static longnpMemoryAllocateNext(long struct) Unsafe version ofpMemoryAllocateNext().static voidnpMemoryAllocateNext(long struct, long value) Unsafe version ofpMemoryAllocateNext.static floatnpriority(long struct) Unsafe version ofpriority().static voidnpriority(long struct, float value) Unsafe version ofpriority.longpMemoryAllocateNext(long value) Sets the specified value to thepMemoryAllocateNextfield.Prepends the specifiedVkDedicatedAllocationMemoryAllocateInfoNVvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkExportMemoryAllocateInfovalue to thepMemoryAllocateNextchain.Prepends the specifiedVkExportMemoryAllocateInfoKHRvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkExportMemoryAllocateInfoNVvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkExportMemoryWin32HandleInfoKHRvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkExportMemoryWin32HandleInfoNVvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkExportMetalObjectCreateInfoEXTvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkImportAndroidHardwareBufferInfoANDROIDvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkImportMemoryFdInfoKHRvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkImportMemoryHostPointerInfoEXTvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkImportMemoryMetalHandleInfoEXTvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkImportMemoryWin32HandleInfoKHRvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkImportMemoryWin32HandleInfoNVvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkImportMetalBufferInfoEXTvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryAllocateFlagsInfovalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryAllocateFlagsInfoKHRvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryDedicatedAllocateInfovalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryDedicatedAllocateInfoKHRvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryDedicatedAllocateInfoTensorARMvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfovalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfoKHRvalue to thepMemoryAllocateNextchain.Prepends the specifiedVkMemoryPriorityAllocateInfoEXTvalue to thepMemoryAllocateNextchain.floatpriority()priority(float value) Sets the specified value to thepriorityfield.set(int memoryTypeIndex, int flags, long blockSize, long minBlockCount, long maxBlockCount, float priority, long minAllocationAlignment, long pMemoryAllocateNext) Initializes this struct with the specified values.set(VmaPoolCreateInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
MEMORYTYPEINDEX
public static final int MEMORYTYPEINDEXThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
BLOCKSIZE
public static final int BLOCKSIZEThe struct member offsets. -
MINBLOCKCOUNT
public static final int MINBLOCKCOUNTThe struct member offsets. -
MAXBLOCKCOUNT
public static final int MAXBLOCKCOUNTThe struct member offsets. -
PRIORITY
public static final int PRIORITYThe struct member offsets. -
MINALLOCATIONALIGNMENT
public static final int MINALLOCATIONALIGNMENTThe struct member offsets. -
PMEMORYALLOCATENEXT
public static final int PMEMORYALLOCATENEXTThe struct member offsets.
-
-
Constructor Details
-
VmaPoolCreateInfo
Creates aVmaPoolCreateInfoinstance 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<VmaPoolCreateInfo>
-
memoryTypeIndex
public int memoryTypeIndex()- Returns:
- the value of the
memoryTypeIndexfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
blockSize
public long blockSize()- Returns:
- the value of the
blockSizefield.
-
minBlockCount
public long minBlockCount()- Returns:
- the value of the
minBlockCountfield.
-
maxBlockCount
public long maxBlockCount()- Returns:
- the value of the
maxBlockCountfield.
-
priority
public float priority()- Returns:
- the value of the
priorityfield.
-
minAllocationAlignment
public long minAllocationAlignment()- Returns:
- the value of the
minAllocationAlignmentfield.
-
pMemoryAllocateNext
public long pMemoryAllocateNext()- Returns:
- the value of the
pMemoryAllocateNextfield.
-
memoryTypeIndex
Sets the specified value to thememoryTypeIndexfield. -
flags
Sets the specified value to theflagsfield. -
blockSize
Sets the specified value to theblockSizefield. -
minBlockCount
Sets the specified value to theminBlockCountfield. -
maxBlockCount
Sets the specified value to themaxBlockCountfield. -
priority
Sets the specified value to thepriorityfield. -
minAllocationAlignment
Sets the specified value to theminAllocationAlignmentfield. -
pMemoryAllocateNext
Sets the specified value to thepMemoryAllocateNextfield. -
pMemoryAllocateNext
Prepends the specifiedVkDedicatedAllocationMemoryAllocateInfoNVvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkExportMemoryAllocateInfovalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkExportMemoryAllocateInfoKHRvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkExportMemoryAllocateInfoNVvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkExportMemoryWin32HandleInfoKHRvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkExportMemoryWin32HandleInfoNVvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkExportMetalObjectCreateInfoEXTvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkImportAndroidHardwareBufferInfoANDROIDvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkImportMemoryFdInfoKHRvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkImportMemoryHostPointerInfoEXTvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkImportMemoryMetalHandleInfoEXTvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkImportMemoryWin32HandleInfoKHRvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkImportMemoryWin32HandleInfoNVvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkImportMetalBufferInfoEXTvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryAllocateFlagsInfovalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryAllocateFlagsInfoKHRvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryDedicatedAllocateInfovalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryDedicatedAllocateInfoKHRvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryDedicatedAllocateInfoTensorARMvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfovalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryOpaqueCaptureAddressAllocateInfoKHRvalue to thepMemoryAllocateNextchain. -
pMemoryAllocateNext
Prepends the specifiedVkMemoryPriorityAllocateInfoEXTvalue to thepMemoryAllocateNextchain. -
set
public VmaPoolCreateInfo set(int memoryTypeIndex, int flags, long blockSize, long minBlockCount, long maxBlockCount, float priority, long minAllocationAlignment, long pMemoryAllocateNext) 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 newVmaPoolCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVmaPoolCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVmaPoolCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVmaPoolCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaPoolCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVmaPoolCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVmaPoolCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVmaPoolCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVmaPoolCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVmaPoolCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVmaPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVmaPoolCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmemoryTypeIndex
public static int nmemoryTypeIndex(long struct) Unsafe version ofmemoryTypeIndex(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nblockSize
public static long nblockSize(long struct) Unsafe version ofblockSize(). -
nminBlockCount
public static long nminBlockCount(long struct) Unsafe version ofminBlockCount(). -
nmaxBlockCount
public static long nmaxBlockCount(long struct) Unsafe version ofmaxBlockCount(). -
npriority
public static float npriority(long struct) Unsafe version ofpriority(). -
nminAllocationAlignment
public static long nminAllocationAlignment(long struct) Unsafe version ofminAllocationAlignment(). -
npMemoryAllocateNext
public static long npMemoryAllocateNext(long struct) Unsafe version ofpMemoryAllocateNext(). -
nmemoryTypeIndex
public static void nmemoryTypeIndex(long struct, int value) Unsafe version ofmemoryTypeIndex. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nblockSize
public static void nblockSize(long struct, long value) Unsafe version ofblockSize. -
nminBlockCount
public static void nminBlockCount(long struct, long value) Unsafe version ofminBlockCount. -
nmaxBlockCount
public static void nmaxBlockCount(long struct, long value) Unsafe version ofmaxBlockCount. -
npriority
public static void npriority(long struct, float value) Unsafe version ofpriority. -
nminAllocationAlignment
public static void nminAllocationAlignment(long struct, long value) Unsafe version ofminAllocationAlignment. -
npMemoryAllocateNext
public static void npMemoryAllocateNext(long struct, long value) Unsafe version ofpMemoryAllocateNext.
-