public class VmaStats
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct VmaStats {
VmaStatInfo memoryType[32];
VmaStatInfo memoryHeap[16];
VmaStatInfo total;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VmaStats.Buffer
An array of
VmaStats structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MEMORYHEAP
The struct member offsets.
|
static int |
MEMORYTYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TOTAL
The struct member offsets.
|
| Constructor and Description |
|---|
VmaStats(java.nio.ByteBuffer container)
Creates a
VmaStats instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VmaStats |
calloc()
Returns a new
VmaStats instance allocated with memCalloc. |
static VmaStats.Buffer |
calloc(int capacity)
Returns a new
VmaStats.Buffer instance allocated with memCalloc. |
static VmaStats |
callocStack()
Returns a new
VmaStats instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaStats.Buffer |
callocStack(int capacity)
Returns a new
VmaStats.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaStats.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaStats.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaStats |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaStats instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaStats |
create()
Returns a new
VmaStats instance allocated with BufferUtils. |
static VmaStats.Buffer |
create(int capacity)
Returns a new
VmaStats.Buffer instance allocated with BufferUtils. |
static VmaStats |
create(long address)
Returns a new
VmaStats instance for the specified memory address. |
static VmaStats.Buffer |
create(long address,
int capacity)
Create a
VmaStats.Buffer instance at the specified memory. |
static VmaStats |
createSafe(long address)
|
static VmaStats.Buffer |
createSafe(long address,
int capacity)
|
static VmaStats |
malloc()
Returns a new
VmaStats instance allocated with memAlloc. |
static VmaStats.Buffer |
malloc(int capacity)
Returns a new
VmaStats.Buffer instance allocated with memAlloc. |
static VmaStats |
mallocStack()
Returns a new
VmaStats instance allocated on the thread-local MemoryStack. |
static VmaStats.Buffer |
mallocStack(int capacity)
Returns a new
VmaStats.Buffer instance allocated on the thread-local MemoryStack. |
static VmaStats.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaStats.Buffer instance allocated on the specified MemoryStack. |
static VmaStats |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaStats instance allocated on the specified MemoryStack. |
VmaStatInfo.Buffer |
memoryHeap()
Returns a
VmaStatInfo.Buffer view of the memoryHeap field. |
VmaStatInfo |
memoryHeap(int index)
Returns a
VmaStatInfo view of the struct at the specified index of the memoryHeap field. |
VmaStatInfo.Buffer |
memoryType()
Returns a
VmaStatInfo.Buffer view of the memoryType field. |
VmaStatInfo |
memoryType(int index)
Returns a
VmaStatInfo view of the struct at the specified index of the memoryType field. |
static VmaStatInfo.Buffer |
nmemoryHeap(long struct)
Unsafe version of
memoryHeap(). |
static VmaStatInfo |
nmemoryHeap(long struct,
int index)
Unsafe version of
memoryHeap. |
static VmaStatInfo.Buffer |
nmemoryType(long struct)
Unsafe version of
memoryType(). |
static VmaStatInfo |
nmemoryType(long struct,
int index)
Unsafe version of
memoryType. |
static VmaStatInfo |
ntotal(long struct)
Unsafe version of
total(). |
int |
sizeof() |
VmaStatInfo |
total()
Returns a
VmaStatInfo view of the total field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MEMORYTYPE
public static final int MEMORYHEAP
public static final int TOTAL
public VmaStats(java.nio.ByteBuffer container)
VmaStats 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 VmaStatInfo.Buffer memoryType()
VmaStatInfo.Buffer view of the memoryType field.public VmaStatInfo memoryType(int index)
VmaStatInfo view of the struct at the specified index of the memoryType field.public VmaStatInfo.Buffer memoryHeap()
VmaStatInfo.Buffer view of the memoryHeap field.public VmaStatInfo memoryHeap(int index)
VmaStatInfo view of the struct at the specified index of the memoryHeap field.public VmaStatInfo total()
VmaStatInfo view of the total field.public static VmaStats malloc()
VmaStats instance allocated with memAlloc. The instance must be explicitly freed.public static VmaStats calloc()
VmaStats instance allocated with memCalloc. The instance must be explicitly freed.public static VmaStats create()
VmaStats instance allocated with BufferUtils.public static VmaStats create(long address)
VmaStats instance for the specified memory address.@Nullable public static VmaStats createSafe(long address)
public static VmaStats.Buffer malloc(int capacity)
VmaStats.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaStats.Buffer calloc(int capacity)
VmaStats.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaStats.Buffer create(int capacity)
VmaStats.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VmaStats.Buffer create(long address, int capacity)
VmaStats.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VmaStats.Buffer createSafe(long address, int capacity)
public static VmaStats mallocStack()
VmaStats instance allocated on the thread-local MemoryStack.public static VmaStats callocStack()
VmaStats instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VmaStats mallocStack(org.lwjgl.system.MemoryStack stack)
VmaStats instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VmaStats callocStack(org.lwjgl.system.MemoryStack stack)
VmaStats instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VmaStats.Buffer mallocStack(int capacity)
VmaStats.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VmaStats.Buffer callocStack(int capacity)
VmaStats.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VmaStats.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaStats.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VmaStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaStats.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 VmaStatInfo.Buffer nmemoryType(long struct)
memoryType().public static VmaStatInfo nmemoryType(long struct, int index)
memoryType.public static VmaStatInfo.Buffer nmemoryHeap(long struct)
memoryHeap().public static VmaStatInfo nmemoryHeap(long struct, int index)
memoryHeap.public static VmaStatInfo ntotal(long struct)
total().Copyright LWJGL. All Rights Reserved. License terms.