These are fast to calculate.
struct VmaStatistics {
uint32_t blockCount;
uint32_t allocationCount;
VkDeviceSize blockBytes;
VkDeviceSize allocationBytes;
}
Vma#vmaGetHeapBudgets, Vma#vmaGetPoolStatistics
| Modifier and Type | Class and Description |
|---|---|
| public static class | VmaStatistics.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ALLOCATIONBYTES
The struct member offsets. |
| public static final int | ALLOCATIONCOUNT
The struct member offsets. |
| public static final int | BLOCKBYTES
The struct member offsets. |
| public static final int | BLOCKCOUNT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VmaStatistics(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public int | |
| public long | |
| public int | |
| public static VmaStatistics | |
| public static VmaStatistics. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VmaStatistics | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaStatistics. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VmaStatistics | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VmaStatistics | |
| public static VmaStatistics | |
| public static VmaStatistics. | create(int
the buffer capacity capacity)Returns a new |
| public static VmaStatistics. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VmaStatistics | |
| public static VmaStatistics. | |
| public static VmaStatistics | |
| public static VmaStatistics. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VmaStatistics | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaStatistics. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static int | |
| public static long | |
| public static int | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ALLOCATIONBYTES | back to summary |
|---|---|
| public static final int ALLOCATIONBYTES The struct member offsets. | |
| ALLOCATIONCOUNT | back to summary |
|---|---|
| public static final int ALLOCATIONCOUNT The struct member offsets. | |
| BLOCKBYTES | back to summary |
|---|---|
| public static final int BLOCKBYTES The struct member offsets. | |
| BLOCKCOUNT | back to summary |
|---|---|
| public static final int BLOCKCOUNT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VmaStatistics | back to summary |
|---|---|
| protected VmaStatistics(long address, ByteBuffer container) | |
| VmaStatistics | back to summary |
|---|---|
| public VmaStatistics(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| allocationBytes | back to summary |
|---|---|
| public long allocationBytes() total number of bytes occupied by all Always less or equal than
| |
| allocationCount | back to summary |
|---|---|
| public int allocationCount() number of Dedicated allocations have their own blocks, so each one adds 1 to
| |
| blockBytes | back to summary |
|---|---|
| public long blockBytes() number of bytes allocated in To avoid confusion, please be aware that what Vulkan calls an "allocation" - a whole
| |
| blockCount | back to summary |
|---|---|
| public int blockCount() number of
| |
| calloc | back to summary |
|---|---|
| public static VmaStatistics calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VmaStatistics. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaStatistics calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaStatistics. Returns a new
| |
| create | back to summary |
|---|---|
| protected VmaStatistics create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VmaStatistics create() Returns a new | |
| create | back to summary |
|---|---|
| public static VmaStatistics create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VmaStatistics. Returns a new
| |
| create | back to summary |
|---|---|
| public static VmaStatistics. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VmaStatistics createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VmaStatistics. Like
| |
| malloc | back to summary |
|---|---|
| public static VmaStatistics malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VmaStatistics. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaStatistics malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaStatistics. Returns a new
| |
| nallocationBytes | back to summary |
|---|---|
| public static long nallocationBytes(long struct) Unsafe version of | |
| nallocationCount | back to summary |
|---|---|
| public static int nallocationCount(long struct) Unsafe version of | |
| nblockBytes | back to summary |
|---|---|
| public static long nblockBytes(long struct) Unsafe version of | |
| nblockCount | back to summary |
|---|---|
| public static int nblockCount(long struct) Unsafe version of | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VmaStatistics structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VmaStatistics |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public int | |
| public long | |
| public int | |
| protected VmaStatistics | |
| protected VmaStatistics. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VmaStatistics ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| allocationBytes | back to summary |
|---|---|
public long allocationBytes()
| |
| allocationCount | back to summary |
|---|---|
public int allocationCount()
| |
| blockBytes | back to summary |
|---|---|
public long blockBytes()
| |
| blockCount | back to summary |
|---|---|
public int blockCount()
| |
| getElementFactory | back to summary |
|---|---|
| protected VmaStatistics getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected VmaStatistics. Implements abstract org.
| |