Package org.lwjgl.util.vma
Class VmaDefragmentationStats
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaDefragmentationStats
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaDefragmentationStats extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStatistics returned by functionDefragment.Layout
struct VmaDefragmentationStats { VkDeviceSizebytesMoved(); VkDeviceSizebytesFreed(); uint32_tallocationsMoved(); uint32_tdeviceMemoryBlocksFreed(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaDefragmentationStats.BufferAn array ofVmaDefragmentationStatsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOCATIONSMOVED
BYTESFREED
BYTESMOVED
DEVICEMEMORYBLOCKSFREEDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VmaDefragmentationStats(java.nio.ByteBuffer container)Creates aVmaDefragmentationStatsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intallocationsMoved()number of allocations that have been moved to different placeslongbytesFreed()total number of bytes that have been released to the system by freeing emptyVkDeviceMemoryobjectslongbytesMoved()total number of bytes that have been copied while moving allocations to different placesstatic VmaDefragmentationStatscalloc()Returns a newVmaDefragmentationStatsinstance allocated withmemCalloc.static VmaDefragmentationStats.Buffercalloc(int capacity)Returns a newVmaDefragmentationStats.Bufferinstance allocated withmemCalloc.static VmaDefragmentationStats.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationStatscalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationStatscallocStack()Deprecated.static VmaDefragmentationStats.BuffercallocStack(int capacity)Deprecated.static VmaDefragmentationStats.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaDefragmentationStatscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VmaDefragmentationStatscreate()Returns a newVmaDefragmentationStatsinstance allocated withBufferUtils.static VmaDefragmentationStats.Buffercreate(int capacity)Returns a newVmaDefragmentationStats.Bufferinstance allocated withBufferUtils.static VmaDefragmentationStatscreate(long address)Returns a newVmaDefragmentationStatsinstance for the specified memory address.static VmaDefragmentationStats.Buffercreate(long address, int capacity)Create aVmaDefragmentationStats.Bufferinstance at the specified memory.static VmaDefragmentationStatscreateSafe(long address)static VmaDefragmentationStats.BuffercreateSafe(long address, int capacity)intdeviceMemoryBlocksFreed()number of emptyVkDeviceMemoryobjects that have been released to the systemstatic VmaDefragmentationStatsmalloc()Returns a newVmaDefragmentationStatsinstance allocated withmemAlloc.static VmaDefragmentationStats.Buffermalloc(int capacity)Returns a newVmaDefragmentationStats.Bufferinstance allocated withmemAlloc.static VmaDefragmentationStats.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationStats.Bufferinstance allocated on the specifiedMemoryStack.static VmaDefragmentationStatsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationStatsinstance allocated on the specifiedMemoryStack.static VmaDefragmentationStatsmallocStack()Deprecated.static VmaDefragmentationStats.BuffermallocStack(int capacity)Deprecated.static VmaDefragmentationStats.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaDefragmentationStatsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnallocationsMoved(long struct)Unsafe version ofallocationsMoved().static longnbytesFreed(long struct)Unsafe version ofbytesFreed().static longnbytesMoved(long struct)Unsafe version ofbytesMoved().static intndeviceMemoryBlocksFreed(long struct)Unsafe version ofdeviceMemoryBlocksFreed().intsizeof()
-
-
-
Constructor Detail
-
VmaDefragmentationStats
public VmaDefragmentationStats(java.nio.ByteBuffer container)
Creates aVmaDefragmentationStatsinstance 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
-
bytesMoved
public long bytesMoved()
total number of bytes that have been copied while moving allocations to different places
-
bytesFreed
public long bytesFreed()
total number of bytes that have been released to the system by freeing emptyVkDeviceMemoryobjects
-
allocationsMoved
public int allocationsMoved()
number of allocations that have been moved to different places
-
deviceMemoryBlocksFreed
public int deviceMemoryBlocksFreed()
number of emptyVkDeviceMemoryobjects that have been released to the system
-
malloc
public static VmaDefragmentationStats malloc()
Returns a newVmaDefragmentationStatsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaDefragmentationStats calloc()
Returns a newVmaDefragmentationStatsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaDefragmentationStats create()
Returns a newVmaDefragmentationStatsinstance allocated withBufferUtils.
-
create
public static VmaDefragmentationStats create(long address)
Returns a newVmaDefragmentationStatsinstance for the specified memory address.
-
createSafe
@Nullable public static VmaDefragmentationStats createSafe(long address)
-
malloc
public static VmaDefragmentationStats.Buffer malloc(int capacity)
Returns a newVmaDefragmentationStats.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaDefragmentationStats.Buffer calloc(int capacity)
Returns a newVmaDefragmentationStats.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaDefragmentationStats.Buffer create(int capacity)
Returns a newVmaDefragmentationStats.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaDefragmentationStats.Buffer create(long address, int capacity)
Create aVmaDefragmentationStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaDefragmentationStats.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VmaDefragmentationStats mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaDefragmentationStats callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaDefragmentationStats mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaDefragmentationStats callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaDefragmentationStats.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VmaDefragmentationStats.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaDefragmentationStats.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 VmaDefragmentationStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VmaDefragmentationStats malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationStatsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaDefragmentationStats calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaDefragmentationStats.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationStats.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaDefragmentationStats.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbytesMoved
public static long nbytesMoved(long struct)
Unsafe version ofbytesMoved().
-
nbytesFreed
public static long nbytesFreed(long struct)
Unsafe version ofbytesFreed().
-
nallocationsMoved
public static int nallocationsMoved(long struct)
Unsafe version ofallocationsMoved().
-
ndeviceMemoryBlocksFreed
public static int ndeviceMemoryBlocksFreed(long struct)
Unsafe version ofdeviceMemoryBlocksFreed().
-
-