public class VmaStatInfo
extends org.lwjgl.system.Struct
blockCount – number of VkDeviceMemory Vulkan memory blocks allocatedallocationCount – number of VmaAllocation allocation objects allocatedunusedRangeCount – number of free ranges of memory between allocationsusedBytes – total number of bytes occupied by all allocationsunusedBytes – total number of bytes occupied by unused ranges
struct VmaStatInfo {
uint32_t blockCount;
uint32_t allocationCount;
uint32_t unusedRangeCount;
VkDeviceSize usedBytes;
VkDeviceSize unusedBytes;
VkDeviceSize allocationSizeMin;
VkDeviceSize allocationSizeAvg;
VkDeviceSize allocationSizeMax;
VkDeviceSize unusedRangeSizeMin;
VkDeviceSize unusedRangeSizeAvg;
VkDeviceSize unusedRangeSizeMax;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VmaStatInfo.Buffer
An array of
VmaStatInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALLOCATIONCOUNT
The struct member offsets.
|
static int |
ALLOCATIONSIZEAVG
The struct member offsets.
|
static int |
ALLOCATIONSIZEMAX
The struct member offsets.
|
static int |
ALLOCATIONSIZEMIN
The struct member offsets.
|
static int |
BLOCKCOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UNUSEDBYTES
The struct member offsets.
|
static int |
UNUSEDRANGECOUNT
The struct member offsets.
|
static int |
UNUSEDRANGESIZEAVG
The struct member offsets.
|
static int |
UNUSEDRANGESIZEMAX
The struct member offsets.
|
static int |
UNUSEDRANGESIZEMIN
The struct member offsets.
|
static int |
USEDBYTES
The struct member offsets.
|
| Constructor and Description |
|---|
VmaStatInfo(java.nio.ByteBuffer container)
Creates a
VmaStatInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
allocationCount()
Returns the value of the
allocationCount field. |
long |
allocationSizeAvg()
Returns the value of the
allocationSizeAvg field. |
long |
allocationSizeMax()
Returns the value of the
allocationSizeMax field. |
long |
allocationSizeMin()
Returns the value of the
allocationSizeMin field. |
int |
blockCount()
Returns the value of the
blockCount field. |
static VmaStatInfo |
create(long address)
Returns a new
VmaStatInfo instance for the specified memory address. |
static VmaStatInfo.Buffer |
create(long address,
int capacity)
Create a
VmaStatInfo.Buffer instance at the specified memory. |
static VmaStatInfo |
createSafe(long address)
|
static VmaStatInfo.Buffer |
createSafe(long address,
int capacity)
|
static int |
nallocationCount(long struct)
Unsafe version of
allocationCount(). |
static long |
nallocationSizeAvg(long struct)
Unsafe version of
allocationSizeAvg(). |
static long |
nallocationSizeMax(long struct)
Unsafe version of
allocationSizeMax(). |
static long |
nallocationSizeMin(long struct)
Unsafe version of
allocationSizeMin(). |
static int |
nblockCount(long struct)
Unsafe version of
blockCount(). |
static long |
nunusedBytes(long struct)
Unsafe version of
unusedBytes(). |
static int |
nunusedRangeCount(long struct)
Unsafe version of
unusedRangeCount(). |
static long |
nunusedRangeSizeAvg(long struct)
Unsafe version of
unusedRangeSizeAvg(). |
static long |
nunusedRangeSizeMax(long struct)
Unsafe version of
unusedRangeSizeMax(). |
static long |
nunusedRangeSizeMin(long struct)
Unsafe version of
unusedRangeSizeMin(). |
static long |
nusedBytes(long struct)
Unsafe version of
usedBytes(). |
int |
sizeof() |
long |
unusedBytes()
Returns the value of the
unusedBytes field. |
int |
unusedRangeCount()
Returns the value of the
unusedRangeCount field. |
long |
unusedRangeSizeAvg()
Returns the value of the
unusedRangeSizeAvg field. |
long |
unusedRangeSizeMax()
Returns the value of the
unusedRangeSizeMax field. |
long |
unusedRangeSizeMin()
Returns the value of the
unusedRangeSizeMin field. |
long |
usedBytes()
Returns the value of the
usedBytes field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BLOCKCOUNT
public static final int ALLOCATIONCOUNT
public static final int UNUSEDRANGECOUNT
public static final int USEDBYTES
public static final int UNUSEDBYTES
public static final int ALLOCATIONSIZEMIN
public static final int ALLOCATIONSIZEAVG
public static final int ALLOCATIONSIZEMAX
public static final int UNUSEDRANGESIZEMIN
public static final int UNUSEDRANGESIZEAVG
public static final int UNUSEDRANGESIZEMAX
public VmaStatInfo(java.nio.ByteBuffer container)
VmaStatInfo 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 int blockCount()
blockCount field.public int allocationCount()
allocationCount field.public int unusedRangeCount()
unusedRangeCount field.public long usedBytes()
usedBytes field.public long unusedBytes()
unusedBytes field.public long allocationSizeMin()
allocationSizeMin field.public long allocationSizeAvg()
allocationSizeAvg field.public long allocationSizeMax()
allocationSizeMax field.public long unusedRangeSizeMin()
unusedRangeSizeMin field.public long unusedRangeSizeAvg()
unusedRangeSizeAvg field.public long unusedRangeSizeMax()
unusedRangeSizeMax field.public static VmaStatInfo create(long address)
VmaStatInfo instance for the specified memory address.@Nullable public static VmaStatInfo createSafe(long address)
public static VmaStatInfo.Buffer create(long address, int capacity)
VmaStatInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VmaStatInfo.Buffer createSafe(long address, int capacity)
public static int nblockCount(long struct)
blockCount().public static int nallocationCount(long struct)
allocationCount().public static int nunusedRangeCount(long struct)
unusedRangeCount().public static long nusedBytes(long struct)
usedBytes().public static long nunusedBytes(long struct)
unusedBytes().public static long nallocationSizeMin(long struct)
allocationSizeMin().public static long nallocationSizeAvg(long struct)
allocationSizeAvg().public static long nallocationSizeMax(long struct)
allocationSizeMax().public static long nunusedRangeSizeMin(long struct)
unusedRangeSizeMin().public static long nunusedRangeSizeAvg(long struct)
unusedRangeSizeAvg().public static long nunusedRangeSizeMax(long struct)
unusedRangeSizeMax().Copyright LWJGL. All Rights Reserved. License terms.