Package org.lwjgl.util.vma
Class VmaStatInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaStatInfo
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VmaStatInfo extends org.lwjgl.system.Struct
Calculated statistics of memory usage in entire allocator.Member documentation
blockCount
– number ofVkDeviceMemory
Vulkan memory blocks allocatedallocationCount
– number ofVmaAllocation
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
Layout
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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VmaStatInfo.Buffer
An array ofVmaStatInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ALLOCATIONCOUNT
ALLOCATIONSIZEAVG
ALLOCATIONSIZEMAX
ALLOCATIONSIZEMIN
BLOCKCOUNTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
UNUSEDBYTES
UNUSEDRANGECOUNT
UNUSEDRANGESIZEAVG
UNUSEDRANGESIZEMAX
UNUSEDRANGESIZEMIN
USEDBYTESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VmaStatInfo(java.nio.ByteBuffer container)
Creates aVmaStatInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
allocationCount()
Returns the value of theallocationCount
field.long
allocationSizeAvg()
Returns the value of theallocationSizeAvg
field.long
allocationSizeMax()
Returns the value of theallocationSizeMax
field.long
allocationSizeMin()
Returns the value of theallocationSizeMin
field.int
blockCount()
Returns the value of theblockCount
field.static VmaStatInfo
create(long address)
Returns a newVmaStatInfo
instance for the specified memory address.static VmaStatInfo.Buffer
create(long address, int capacity)
Create aVmaStatInfo.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 ofallocationCount()
.static long
nallocationSizeAvg(long struct)
Unsafe version ofallocationSizeAvg()
.static long
nallocationSizeMax(long struct)
Unsafe version ofallocationSizeMax()
.static long
nallocationSizeMin(long struct)
Unsafe version ofallocationSizeMin()
.static int
nblockCount(long struct)
Unsafe version ofblockCount()
.static long
nunusedBytes(long struct)
Unsafe version ofunusedBytes()
.static int
nunusedRangeCount(long struct)
Unsafe version ofunusedRangeCount()
.static long
nunusedRangeSizeAvg(long struct)
Unsafe version ofunusedRangeSizeAvg()
.static long
nunusedRangeSizeMax(long struct)
Unsafe version ofunusedRangeSizeMax()
.static long
nunusedRangeSizeMin(long struct)
Unsafe version ofunusedRangeSizeMin()
.static long
nusedBytes(long struct)
Unsafe version ofusedBytes()
.int
sizeof()
long
unusedBytes()
Returns the value of theunusedBytes
field.int
unusedRangeCount()
Returns the value of theunusedRangeCount
field.long
unusedRangeSizeAvg()
Returns the value of theunusedRangeSizeAvg
field.long
unusedRangeSizeMax()
Returns the value of theunusedRangeSizeMax
field.long
unusedRangeSizeMin()
Returns the value of theunusedRangeSizeMin
field.long
usedBytes()
Returns the value of theusedBytes
field.
-
-
-
Constructor Detail
-
VmaStatInfo
public VmaStatInfo(java.nio.ByteBuffer container)
Creates aVmaStatInfo
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
blockCount
public int blockCount()
Returns the value of theblockCount
field.
-
allocationCount
public int allocationCount()
Returns the value of theallocationCount
field.
-
unusedRangeCount
public int unusedRangeCount()
Returns the value of theunusedRangeCount
field.
-
usedBytes
public long usedBytes()
Returns the value of theusedBytes
field.
-
unusedBytes
public long unusedBytes()
Returns the value of theunusedBytes
field.
-
allocationSizeMin
public long allocationSizeMin()
Returns the value of theallocationSizeMin
field.
-
allocationSizeAvg
public long allocationSizeAvg()
Returns the value of theallocationSizeAvg
field.
-
allocationSizeMax
public long allocationSizeMax()
Returns the value of theallocationSizeMax
field.
-
unusedRangeSizeMin
public long unusedRangeSizeMin()
Returns the value of theunusedRangeSizeMin
field.
-
unusedRangeSizeAvg
public long unusedRangeSizeAvg()
Returns the value of theunusedRangeSizeAvg
field.
-
unusedRangeSizeMax
public long unusedRangeSizeMax()
Returns the value of theunusedRangeSizeMax
field.
-
create
public static VmaStatInfo create(long address)
Returns a newVmaStatInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VmaStatInfo createSafe(long address)
-
create
public static VmaStatInfo.Buffer create(long address, int capacity)
Create aVmaStatInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VmaStatInfo.Buffer createSafe(long address, int capacity)
-
nblockCount
public static int nblockCount(long struct)
Unsafe version ofblockCount()
.
-
nallocationCount
public static int nallocationCount(long struct)
Unsafe version ofallocationCount()
.
-
nunusedRangeCount
public static int nunusedRangeCount(long struct)
Unsafe version ofunusedRangeCount()
.
-
nusedBytes
public static long nusedBytes(long struct)
Unsafe version ofusedBytes()
.
-
nunusedBytes
public static long nunusedBytes(long struct)
Unsafe version ofunusedBytes()
.
-
nallocationSizeMin
public static long nallocationSizeMin(long struct)
Unsafe version ofallocationSizeMin()
.
-
nallocationSizeAvg
public static long nallocationSizeAvg(long struct)
Unsafe version ofallocationSizeAvg()
.
-
nallocationSizeMax
public static long nallocationSizeMax(long struct)
Unsafe version ofallocationSizeMax()
.
-
nunusedRangeSizeMin
public static long nunusedRangeSizeMin(long struct)
Unsafe version ofunusedRangeSizeMin()
.
-
nunusedRangeSizeAvg
public static long nunusedRangeSizeAvg(long struct)
Unsafe version ofunusedRangeSizeAvg()
.
-
nunusedRangeSizeMax
public static long nunusedRangeSizeMax(long struct)
Unsafe version ofunusedRangeSizeMax()
.
-
-