Package org.lwjgl.util.vma
Class VmaTotalStatistics
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VmaTotalStatistics {
VmaDetailedStatistics memoryType[32];
VmaDetailedStatistics memoryHeap[16];
VmaDetailedStatistics total;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVmaTotalStatistics(ByteBuffer container) Creates aVmaTotalStatisticsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaTotalStatisticscalloc()Returns a newVmaTotalStatisticsinstance allocated withmemCalloc.static VmaTotalStatistics.Buffercalloc(int capacity) Returns a newVmaTotalStatistics.Bufferinstance allocated withmemCalloc.static VmaTotalStatistics.Buffercalloc(int capacity, MemoryStack stack) Returns a newVmaTotalStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaTotalStatisticscalloc(MemoryStack stack) Returns a newVmaTotalStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaTotalStatisticscreate()Returns a newVmaTotalStatisticsinstance allocated withBufferUtils.static VmaTotalStatistics.Buffercreate(int capacity) Returns a newVmaTotalStatistics.Bufferinstance allocated withBufferUtils.static VmaTotalStatisticscreate(long address) Returns a newVmaTotalStatisticsinstance for the specified memory address.static VmaTotalStatistics.Buffercreate(long address, int capacity) Create aVmaTotalStatistics.Bufferinstance at the specified memory.static @Nullable VmaTotalStatisticscreateSafe(long address) static @Nullable VmaTotalStatistics.BuffercreateSafe(long address, int capacity) static VmaTotalStatisticsmalloc()Returns a newVmaTotalStatisticsinstance allocated withmemAlloc.static VmaTotalStatistics.Buffermalloc(int capacity) Returns a newVmaTotalStatistics.Bufferinstance allocated withmemAlloc.static VmaTotalStatistics.Buffermalloc(int capacity, MemoryStack stack) Returns a newVmaTotalStatistics.Bufferinstance allocated on the specifiedMemoryStack.static VmaTotalStatisticsmalloc(MemoryStack stack) Returns a newVmaTotalStatisticsinstance allocated on the specifiedMemoryStack.memoryHeap(int index) memoryType(int index) static VmaDetailedStatistics.BuffernmemoryHeap(long struct) Unsafe version ofmemoryHeap().static VmaDetailedStatisticsnmemoryHeap(long struct, int index) Unsafe version ofmemoryHeap.static VmaDetailedStatistics.BuffernmemoryType(long struct) Unsafe version ofmemoryType().static VmaDetailedStatisticsnmemoryType(long struct, int index) Unsafe version ofmemoryType.static VmaDetailedStatisticsntotal(long struct) Unsafe version oftotal().intsizeof()Returnssizeof(struct).total()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MEMORYTYPE
public static final int MEMORYTYPEThe struct member offsets. -
MEMORYHEAP
public static final int MEMORYHEAPThe struct member offsets. -
TOTAL
public static final int TOTALThe struct member offsets.
-
-
Constructor Details
-
VmaTotalStatistics
Creates aVmaTotalStatisticsinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VmaTotalStatistics>
-
memoryType
- Returns:
- a
VmaDetailedStatistics.Buffer view of thememoryTypefield.
-
memoryType
- Returns:
- a
VmaDetailedStatisticsview of the struct at the specified index of thememoryTypefield.
-
memoryHeap
- Returns:
- a
VmaDetailedStatistics.Buffer view of thememoryHeapfield.
-
memoryHeap
- Returns:
- a
VmaDetailedStatisticsview of the struct at the specified index of thememoryHeapfield.
-
total
- Returns:
- a
VmaDetailedStatisticsview of thetotalfield.
-
malloc
Returns a newVmaTotalStatisticsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVmaTotalStatisticsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVmaTotalStatisticsinstance allocated withBufferUtils. -
create
Returns a newVmaTotalStatisticsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaTotalStatistics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVmaTotalStatistics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVmaTotalStatistics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVmaTotalStatistics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVmaTotalStatisticsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVmaTotalStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVmaTotalStatistics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVmaTotalStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmemoryType
Unsafe version ofmemoryType(). -
nmemoryType
Unsafe version ofmemoryType. -
nmemoryHeap
Unsafe version ofmemoryHeap(). -
nmemoryHeap
Unsafe version ofmemoryHeap. -
ntotal
Unsafe version oftotal().
-