public class VmaPoolStats
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
VmaPool.
size – total amount of VkDeviceMemory allocated from Vulkan for this pool, in bytesunusedSize – total number of bytes in the pool not used by any VmaAllocationallocationCount – number of VmaAllocation objects created from this pool that were not destroyed or lostunusedRangeCount – number of continuous memory ranges in the pool not used by any VmaAllocationunusedRangeSizeMax –
size of the largest continuous free memory region available for new allocation.
Making a new allocation of that size is not guaranteed to succeed because of possible additional margin required to respect alignment and buffer/imag granularity.
blockCount – number of VkDeviceMemory blocks allocated for this pool
struct VmaPoolStats {
VkDeviceSize size;
VkDeviceSize unusedSize;
size_t allocationCount;
size_t unusedRangeCount;
VkDeviceSize unusedRangeSizeMax;
size_t blockCount;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VmaPoolStats.Buffer
An array of
VmaPoolStats structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALLOCATIONCOUNT
The struct member offsets.
|
static int |
BLOCKCOUNT
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UNUSEDRANGECOUNT
The struct member offsets.
|
static int |
UNUSEDRANGESIZEMAX
The struct member offsets.
|
static int |
UNUSEDSIZE
The struct member offsets.
|
| Constructor and Description |
|---|
VmaPoolStats(java.nio.ByteBuffer container)
Creates a
VmaPoolStats instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
allocationCount()
Returns the value of the
allocationCount field. |
long |
blockCount()
Returns the value of the
blockCount field. |
static VmaPoolStats |
calloc()
Returns a new
VmaPoolStats instance allocated with memCalloc. |
static VmaPoolStats.Buffer |
calloc(int capacity)
Returns a new
VmaPoolStats.Buffer instance allocated with memCalloc. |
static VmaPoolStats |
callocStack()
Returns a new
VmaPoolStats instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaPoolStats.Buffer |
callocStack(int capacity)
Returns a new
VmaPoolStats.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaPoolStats.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaPoolStats.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaPoolStats |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaPoolStats instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaPoolStats |
create()
Returns a new
VmaPoolStats instance allocated with BufferUtils. |
static VmaPoolStats.Buffer |
create(int capacity)
Returns a new
VmaPoolStats.Buffer instance allocated with BufferUtils. |
static VmaPoolStats |
create(long address)
Returns a new
VmaPoolStats instance for the specified memory address. |
static VmaPoolStats.Buffer |
create(long address,
int capacity)
Create a
VmaPoolStats.Buffer instance at the specified memory. |
static VmaPoolStats |
createSafe(long address)
|
static VmaPoolStats.Buffer |
createSafe(long address,
int capacity)
|
static VmaPoolStats |
malloc()
Returns a new
VmaPoolStats instance allocated with memAlloc. |
static VmaPoolStats.Buffer |
malloc(int capacity)
Returns a new
VmaPoolStats.Buffer instance allocated with memAlloc. |
static VmaPoolStats |
mallocStack()
Returns a new
VmaPoolStats instance allocated on the thread-local MemoryStack. |
static VmaPoolStats.Buffer |
mallocStack(int capacity)
Returns a new
VmaPoolStats.Buffer instance allocated on the thread-local MemoryStack. |
static VmaPoolStats.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaPoolStats.Buffer instance allocated on the specified MemoryStack. |
static VmaPoolStats |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaPoolStats instance allocated on the specified MemoryStack. |
static long |
nallocationCount(long struct)
Unsafe version of
allocationCount(). |
static long |
nblockCount(long struct)
Unsafe version of
blockCount(). |
static long |
nsize(long struct)
Unsafe version of
size(). |
static long |
nunusedRangeCount(long struct)
Unsafe version of
unusedRangeCount(). |
static long |
nunusedRangeSizeMax(long struct)
Unsafe version of
unusedRangeSizeMax(). |
static long |
nunusedSize(long struct)
Unsafe version of
unusedSize(). |
long |
size()
Returns the value of the
size field. |
int |
sizeof() |
long |
unusedRangeCount()
Returns the value of the
unusedRangeCount field. |
long |
unusedRangeSizeMax()
Returns the value of the
unusedRangeSizeMax field. |
long |
unusedSize()
Returns the value of the
unusedSize field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SIZE
public static final int UNUSEDSIZE
public static final int ALLOCATIONCOUNT
public static final int UNUSEDRANGECOUNT
public static final int UNUSEDRANGESIZEMAX
public static final int BLOCKCOUNT
public VmaPoolStats(java.nio.ByteBuffer container)
VmaPoolStats instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long size()
size field.public long unusedSize()
unusedSize field.public long allocationCount()
allocationCount field.public long unusedRangeCount()
unusedRangeCount field.public long unusedRangeSizeMax()
unusedRangeSizeMax field.public long blockCount()
blockCount field.public static VmaPoolStats malloc()
VmaPoolStats instance allocated with memAlloc. The instance must be explicitly freed.public static VmaPoolStats calloc()
VmaPoolStats instance allocated with memCalloc. The instance must be explicitly freed.public static VmaPoolStats create()
VmaPoolStats instance allocated with BufferUtils.public static VmaPoolStats create(long address)
VmaPoolStats instance for the specified memory address.@Nullable public static VmaPoolStats createSafe(long address)
public static VmaPoolStats.Buffer malloc(int capacity)
VmaPoolStats.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaPoolStats.Buffer calloc(int capacity)
VmaPoolStats.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaPoolStats.Buffer create(int capacity)
VmaPoolStats.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VmaPoolStats.Buffer create(long address, int capacity)
VmaPoolStats.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VmaPoolStats.Buffer createSafe(long address, int capacity)
public static VmaPoolStats mallocStack()
VmaPoolStats instance allocated on the thread-local MemoryStack.public static VmaPoolStats callocStack()
VmaPoolStats instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VmaPoolStats mallocStack(org.lwjgl.system.MemoryStack stack)
VmaPoolStats instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VmaPoolStats callocStack(org.lwjgl.system.MemoryStack stack)
VmaPoolStats instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VmaPoolStats.Buffer mallocStack(int capacity)
VmaPoolStats.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VmaPoolStats.Buffer callocStack(int capacity)
VmaPoolStats.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VmaPoolStats.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaPoolStats.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VmaPoolStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaPoolStats.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nsize(long struct)
size().public static long nunusedSize(long struct)
unusedSize().public static long nallocationCount(long struct)
allocationCount().public static long nunusedRangeCount(long struct)
unusedRangeCount().public static long nunusedRangeSizeMax(long struct)
unusedRangeSizeMax().public static long nblockCount(long struct)
blockCount().Copyright LWJGL. All Rights Reserved. License terms.