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:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaStatInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceCalculated statistics of memory usage in entire allocator.Layout
struct VmaStatInfo { uint32_tblockCount(); uint32_tallocationCount(); uint32_tunusedRangeCount(); VkDeviceSizeusedBytes(); VkDeviceSizeunusedBytes(); VkDeviceSize allocationSizeMin; VkDeviceSize allocationSizeAvg; VkDeviceSize allocationSizeMax; VkDeviceSize unusedRangeSizeMin; VkDeviceSize unusedRangeSizeAvg; VkDeviceSize unusedRangeSizeMax; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaStatInfo.BufferAn array ofVmaStatInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOCATIONCOUNT
ALLOCATIONSIZEAVG
ALLOCATIONSIZEMAX
ALLOCATIONSIZEMIN
BLOCKCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUNUSEDBYTES
UNUSEDRANGECOUNT
UNUSEDRANGESIZEAVG
UNUSEDRANGESIZEMAX
UNUSEDRANGESIZEMIN
USEDBYTESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VmaStatInfo(java.nio.ByteBuffer container)Creates aVmaStatInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intallocationCount()number ofVmaAllocationallocation objects allocatedlongallocationSizeAvg()longallocationSizeMax()longallocationSizeMin()intblockCount()number ofVkDeviceMemoryVulkan memory blocks allocatedstatic VmaStatInfocalloc()Returns a newVmaStatInfoinstance allocated withmemCalloc.static VmaStatInfo.Buffercalloc(int capacity)Returns a newVmaStatInfo.Bufferinstance allocated withmemCalloc.static VmaStatInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaStatInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaStatInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaStatInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaStatInfocallocStack()Deprecated.static VmaStatInfo.BuffercallocStack(int capacity)Deprecated.static VmaStatInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaStatInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VmaStatInfocreate()Returns a newVmaStatInfoinstance allocated withBufferUtils.static VmaStatInfo.Buffercreate(int capacity)Returns a newVmaStatInfo.Bufferinstance allocated withBufferUtils.static VmaStatInfocreate(long address)Returns a newVmaStatInfoinstance for the specified memory address.static VmaStatInfo.Buffercreate(long address, int capacity)Create aVmaStatInfo.Bufferinstance at the specified memory.static VmaStatInfocreateSafe(long address)static VmaStatInfo.BuffercreateSafe(long address, int capacity)static VmaStatInfomalloc()Returns a newVmaStatInfoinstance allocated withmemAlloc.static VmaStatInfo.Buffermalloc(int capacity)Returns a newVmaStatInfo.Bufferinstance allocated withmemAlloc.static VmaStatInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaStatInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaStatInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaStatInfoinstance allocated on the specifiedMemoryStack.static VmaStatInfomallocStack()Deprecated.static VmaStatInfo.BuffermallocStack(int capacity)Deprecated.static VmaStatInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaStatInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnallocationCount(long struct)Unsafe version ofallocationCount().static longnallocationSizeAvg(long struct)Unsafe version ofallocationSizeAvg().static longnallocationSizeMax(long struct)Unsafe version ofallocationSizeMax().static longnallocationSizeMin(long struct)Unsafe version ofallocationSizeMin().static intnblockCount(long struct)Unsafe version ofblockCount().static longnunusedBytes(long struct)Unsafe version ofunusedBytes().static intnunusedRangeCount(long struct)Unsafe version ofunusedRangeCount().static longnunusedRangeSizeAvg(long struct)Unsafe version ofunusedRangeSizeAvg().static longnunusedRangeSizeMax(long struct)Unsafe version ofunusedRangeSizeMax().static longnunusedRangeSizeMin(long struct)Unsafe version ofunusedRangeSizeMin().static longnusedBytes(long struct)Unsafe version ofusedBytes().intsizeof()longunusedBytes()total number of bytes occupied by unused rangesintunusedRangeCount()number of free ranges of memory between allocationslongunusedRangeSizeAvg()longunusedRangeSizeMax()longunusedRangeSizeMin()longusedBytes()total number of bytes occupied by all allocations
-
-
-
Constructor Detail
-
VmaStatInfo
public VmaStatInfo(java.nio.ByteBuffer container)
Creates aVmaStatInfoinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
blockCount
public int blockCount()
number ofVkDeviceMemoryVulkan memory blocks allocated
-
allocationCount
public int allocationCount()
number ofVmaAllocationallocation objects allocated
-
unusedRangeCount
public int unusedRangeCount()
number of free ranges of memory between allocations
-
usedBytes
public long usedBytes()
total number of bytes occupied by all allocations
-
unusedBytes
public long unusedBytes()
total number of bytes occupied by unused ranges
-
allocationSizeMin
public long allocationSizeMin()
- Returns:
- the value of the
allocationSizeMinfield.
-
allocationSizeAvg
public long allocationSizeAvg()
- Returns:
- the value of the
allocationSizeAvgfield.
-
allocationSizeMax
public long allocationSizeMax()
- Returns:
- the value of the
allocationSizeMaxfield.
-
unusedRangeSizeMin
public long unusedRangeSizeMin()
- Returns:
- the value of the
unusedRangeSizeMinfield.
-
unusedRangeSizeAvg
public long unusedRangeSizeAvg()
- Returns:
- the value of the
unusedRangeSizeAvgfield.
-
unusedRangeSizeMax
public long unusedRangeSizeMax()
- Returns:
- the value of the
unusedRangeSizeMaxfield.
-
malloc
public static VmaStatInfo malloc()
Returns a newVmaStatInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaStatInfo calloc()
Returns a newVmaStatInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaStatInfo create()
Returns a newVmaStatInfoinstance allocated withBufferUtils.
-
create
public static VmaStatInfo create(long address)
Returns a newVmaStatInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VmaStatInfo createSafe(long address)
-
malloc
public static VmaStatInfo.Buffer malloc(int capacity)
Returns a newVmaStatInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaStatInfo.Buffer calloc(int capacity)
Returns a newVmaStatInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaStatInfo.Buffer create(int capacity)
Returns a newVmaStatInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaStatInfo.Buffer create(long address, int capacity)
Create aVmaStatInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaStatInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VmaStatInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaStatInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaStatInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaStatInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaStatInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VmaStatInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaStatInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VmaStatInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VmaStatInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaStatInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaStatInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaStatInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaStatInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaStatInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaStatInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaStatInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer 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().
-
-