public class VmaDefragmentationStats
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Defragment.
bytesMoved – total number of bytes that have been copied while moving allocations to different placesbytesFreed – total number of bytes that have been released to the system by freeing empty VkDeviceMemory objectsallocationsMoved – tumber of allocations that have been moved to different placesdeviceMemoryBlocksFreed – number of empty VkDeviceMemory objects that have been released to the system
struct VmaDefragmentationStats {
VkDeviceSize bytesMoved;
VkDeviceSize bytesFreed;
uint32_t allocationsMoved;
uint32_t deviceMemoryBlocksFreed;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VmaDefragmentationStats.Buffer
An array of
VmaDefragmentationStats structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALLOCATIONSMOVED
The struct member offsets.
|
static int |
BYTESFREED
The struct member offsets.
|
static int |
BYTESMOVED
The struct member offsets.
|
static int |
DEVICEMEMORYBLOCKSFREED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VmaDefragmentationStats(java.nio.ByteBuffer container)
Creates a
VmaDefragmentationStats instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
allocationsMoved()
Returns the value of the
allocationsMoved field. |
long |
bytesFreed()
Returns the value of the
bytesFreed field. |
long |
bytesMoved()
Returns the value of the
bytesMoved field. |
static VmaDefragmentationStats |
calloc()
Returns a new
VmaDefragmentationStats instance allocated with memCalloc. |
static VmaDefragmentationStats.Buffer |
calloc(int capacity)
Returns a new
VmaDefragmentationStats.Buffer instance allocated with memCalloc. |
static VmaDefragmentationStats |
callocStack()
Returns a new
VmaDefragmentationStats instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationStats.Buffer |
callocStack(int capacity)
Returns a new
VmaDefragmentationStats.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationStats.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationStats.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationStats |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationStats instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationStats |
create()
Returns a new
VmaDefragmentationStats instance allocated with BufferUtils. |
static VmaDefragmentationStats.Buffer |
create(int capacity)
Returns a new
VmaDefragmentationStats.Buffer instance allocated with BufferUtils. |
static VmaDefragmentationStats |
create(long address)
Returns a new
VmaDefragmentationStats instance for the specified memory address. |
static VmaDefragmentationStats.Buffer |
create(long address,
int capacity)
Create a
VmaDefragmentationStats.Buffer instance at the specified memory. |
static VmaDefragmentationStats |
createSafe(long address)
|
static VmaDefragmentationStats.Buffer |
createSafe(long address,
int capacity)
|
int |
deviceMemoryBlocksFreed()
Returns the value of the
deviceMemoryBlocksFreed field. |
static VmaDefragmentationStats |
malloc()
Returns a new
VmaDefragmentationStats instance allocated with memAlloc. |
static VmaDefragmentationStats.Buffer |
malloc(int capacity)
Returns a new
VmaDefragmentationStats.Buffer instance allocated with memAlloc. |
static VmaDefragmentationStats |
mallocStack()
Returns a new
VmaDefragmentationStats instance allocated on the thread-local MemoryStack. |
static VmaDefragmentationStats.Buffer |
mallocStack(int capacity)
Returns a new
VmaDefragmentationStats.Buffer instance allocated on the thread-local MemoryStack. |
static VmaDefragmentationStats.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationStats.Buffer instance allocated on the specified MemoryStack. |
static VmaDefragmentationStats |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationStats instance allocated on the specified MemoryStack. |
static int |
nallocationsMoved(long struct)
Unsafe version of
allocationsMoved(). |
static long |
nbytesFreed(long struct)
Unsafe version of
bytesFreed(). |
static long |
nbytesMoved(long struct)
Unsafe version of
bytesMoved(). |
static int |
ndeviceMemoryBlocksFreed(long struct)
Unsafe version of
deviceMemoryBlocksFreed(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BYTESMOVED
public static final int BYTESFREED
public static final int ALLOCATIONSMOVED
public static final int DEVICEMEMORYBLOCKSFREED
public VmaDefragmentationStats(java.nio.ByteBuffer container)
VmaDefragmentationStats 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 long bytesMoved()
bytesMoved field.public long bytesFreed()
bytesFreed field.public int allocationsMoved()
allocationsMoved field.public int deviceMemoryBlocksFreed()
deviceMemoryBlocksFreed field.public static VmaDefragmentationStats malloc()
VmaDefragmentationStats instance allocated with memAlloc. The instance must be explicitly freed.public static VmaDefragmentationStats calloc()
VmaDefragmentationStats instance allocated with memCalloc. The instance must be explicitly freed.public static VmaDefragmentationStats create()
VmaDefragmentationStats instance allocated with BufferUtils.public static VmaDefragmentationStats create(long address)
VmaDefragmentationStats instance for the specified memory address.@Nullable public static VmaDefragmentationStats createSafe(long address)
public static VmaDefragmentationStats.Buffer malloc(int capacity)
VmaDefragmentationStats.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaDefragmentationStats.Buffer calloc(int capacity)
VmaDefragmentationStats.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaDefragmentationStats.Buffer create(int capacity)
VmaDefragmentationStats.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VmaDefragmentationStats.Buffer create(long address, int capacity)
VmaDefragmentationStats.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VmaDefragmentationStats.Buffer createSafe(long address, int capacity)
public static VmaDefragmentationStats mallocStack()
VmaDefragmentationStats instance allocated on the thread-local MemoryStack.public static VmaDefragmentationStats callocStack()
VmaDefragmentationStats instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VmaDefragmentationStats mallocStack(org.lwjgl.system.MemoryStack stack)
VmaDefragmentationStats instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VmaDefragmentationStats callocStack(org.lwjgl.system.MemoryStack stack)
VmaDefragmentationStats instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VmaDefragmentationStats.Buffer mallocStack(int capacity)
VmaDefragmentationStats.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VmaDefragmentationStats.Buffer callocStack(int capacity)
VmaDefragmentationStats.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VmaDefragmentationStats.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaDefragmentationStats.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VmaDefragmentationStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaDefragmentationStats.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nbytesMoved(long struct)
bytesMoved().public static long nbytesFreed(long struct)
bytesFreed().public static int nallocationsMoved(long struct)
allocationsMoved().public static int ndeviceMemoryBlocksFreed(long struct)
deviceMemoryBlocksFreed().Copyright LWJGL. All Rights Reserved. License terms.