Package org.lwjgl.util.vma
Class VmaStats
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaStats
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaStats extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceGeneral statistics from current state of Allocator.Layout
struct VmaStats {VmaStatInfomemoryType[32];VmaStatInfomemoryHeap[16];VmaStatInfototal; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaStats.BufferAn array ofVmaStatsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMEMORYHEAP
MEMORYTYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTOTALThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VmaStats(java.nio.ByteBuffer container)Creates aVmaStatsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VmaStatscalloc()Returns a newVmaStatsinstance allocated withmemCalloc.static VmaStats.Buffercalloc(int capacity)Returns a newVmaStats.Bufferinstance allocated withmemCalloc.static VmaStats.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaStatscalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaStatscallocStack()Deprecated.static VmaStats.BuffercallocStack(int capacity)Deprecated.static VmaStats.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaStatscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VmaStatscreate()Returns a newVmaStatsinstance allocated withBufferUtils.static VmaStats.Buffercreate(int capacity)Returns a newVmaStats.Bufferinstance allocated withBufferUtils.static VmaStatscreate(long address)Returns a newVmaStatsinstance for the specified memory address.static VmaStats.Buffercreate(long address, int capacity)Create aVmaStats.Bufferinstance at the specified memory.static VmaStatscreateSafe(long address)static VmaStats.BuffercreateSafe(long address, int capacity)static VmaStatsmalloc()Returns a newVmaStatsinstance allocated withmemAlloc.static VmaStats.Buffermalloc(int capacity)Returns a newVmaStats.Bufferinstance allocated withmemAlloc.static VmaStats.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaStats.Bufferinstance allocated on the specifiedMemoryStack.static VmaStatsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaStatsinstance allocated on the specifiedMemoryStack.static VmaStatsmallocStack()Deprecated.static VmaStats.BuffermallocStack(int capacity)Deprecated.static VmaStats.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaStatsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VmaStatInfo.BuffermemoryHeap()VmaStatInfomemoryHeap(int index)VmaStatInfo.BuffermemoryType()VmaStatInfomemoryType(int index)static VmaStatInfo.BuffernmemoryHeap(long struct)Unsafe version ofmemoryHeap().static VmaStatInfonmemoryHeap(long struct, int index)Unsafe version ofmemoryHeap.static VmaStatInfo.BuffernmemoryType(long struct)Unsafe version ofmemoryType().static VmaStatInfonmemoryType(long struct, int index)Unsafe version ofmemoryType.static VmaStatInfontotal(long struct)Unsafe version oftotal().intsizeof()VmaStatInfototal()
-
-
-
Constructor Detail
-
VmaStats
public VmaStats(java.nio.ByteBuffer container)
Creates aVmaStatsinstance 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
-
memoryType
public VmaStatInfo.Buffer memoryType()
- Returns:
- a
VmaStatInfo.Buffer view of thememoryTypefield.
-
memoryType
public VmaStatInfo memoryType(int index)
- Returns:
- a
VmaStatInfoview of the struct at the specified index of thememoryTypefield.
-
memoryHeap
public VmaStatInfo.Buffer memoryHeap()
- Returns:
- a
VmaStatInfo.Buffer view of thememoryHeapfield.
-
memoryHeap
public VmaStatInfo memoryHeap(int index)
- Returns:
- a
VmaStatInfoview of the struct at the specified index of thememoryHeapfield.
-
total
public VmaStatInfo total()
- Returns:
- a
VmaStatInfoview of thetotalfield.
-
malloc
public static VmaStats malloc()
Returns a newVmaStatsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaStats calloc()
Returns a newVmaStatsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaStats create()
Returns a newVmaStatsinstance allocated withBufferUtils.
-
create
public static VmaStats create(long address)
Returns a newVmaStatsinstance for the specified memory address.
-
createSafe
@Nullable public static VmaStats createSafe(long address)
-
malloc
public static VmaStats.Buffer malloc(int capacity)
Returns a newVmaStats.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaStats.Buffer calloc(int capacity)
Returns a newVmaStats.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaStats.Buffer create(int capacity)
Returns a newVmaStats.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaStats.Buffer create(long address, int capacity)
Create aVmaStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaStats.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VmaStats mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaStats callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaStats mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaStats callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaStats.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VmaStats.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaStats.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 VmaStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VmaStats malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaStatsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaStats calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaStats.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaStats.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaStats.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmemoryType
public static VmaStatInfo.Buffer nmemoryType(long struct)
Unsafe version ofmemoryType().
-
nmemoryType
public static VmaStatInfo nmemoryType(long struct, int index)
Unsafe version ofmemoryType.
-
nmemoryHeap
public static VmaStatInfo.Buffer nmemoryHeap(long struct)
Unsafe version ofmemoryHeap().
-
nmemoryHeap
public static VmaStatInfo nmemoryHeap(long struct, int index)
Unsafe version ofmemoryHeap.
-
ntotal
public static VmaStatInfo ntotal(long struct)
Unsafe version oftotal().
-
-