Package org.lwjgl.util.vma
Class VmaTotalStatistics
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VmaTotalStatistics {
{@link VmaDetailedStatistics VmaDetailedStatistics} memoryType[32];
{@link VmaDetailedStatistics VmaDetailedStatistics} memoryHeap[16];
{@link VmaDetailedStatistics VmaDetailedStatistics} total;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aVmaTotalStatistics
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaTotalStatistics
calloc()
Returns a newVmaTotalStatistics
instance allocated withmemCalloc
.static VmaTotalStatistics.Buffer
calloc
(int capacity) Returns a newVmaTotalStatistics.Buffer
instance allocated withmemCalloc
.static VmaTotalStatistics.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVmaTotalStatistics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaTotalStatistics
calloc
(MemoryStack stack) Returns a newVmaTotalStatistics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaTotalStatistics
create()
Returns a newVmaTotalStatistics
instance allocated withBufferUtils
.static VmaTotalStatistics.Buffer
create
(int capacity) Returns a newVmaTotalStatistics.Buffer
instance allocated withBufferUtils
.static VmaTotalStatistics
create
(long address) Returns a newVmaTotalStatistics
instance for the specified memory address.static VmaTotalStatistics.Buffer
create
(long address, int capacity) Create aVmaTotalStatistics.Buffer
instance at the specified memory.static @Nullable VmaTotalStatistics
createSafe
(long address) static @Nullable VmaTotalStatistics.Buffer
createSafe
(long address, int capacity) static VmaTotalStatistics
malloc()
Returns a newVmaTotalStatistics
instance allocated withmemAlloc
.static VmaTotalStatistics.Buffer
malloc
(int capacity) Returns a newVmaTotalStatistics.Buffer
instance allocated withmemAlloc
.static VmaTotalStatistics.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVmaTotalStatistics.Buffer
instance allocated on the specifiedMemoryStack
.static VmaTotalStatistics
malloc
(MemoryStack stack) Returns a newVmaTotalStatistics
instance allocated on the specifiedMemoryStack
.memoryHeap
(int index) memoryType
(int index) static VmaDetailedStatistics.Buffer
nmemoryHeap
(long struct) Unsafe version ofmemoryHeap()
.static VmaDetailedStatistics
nmemoryHeap
(long struct, int index) Unsafe version ofmemoryHeap
.static VmaDetailedStatistics.Buffer
nmemoryType
(long struct) Unsafe version ofmemoryType()
.static VmaDetailedStatistics
nmemoryType
(long struct, int index) Unsafe version ofmemoryType
.static VmaDetailedStatistics
ntotal
(long struct) Unsafe version oftotal()
.int
sizeof()
Returnssizeof(struct)
.total()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVmaTotalStatistics
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VmaTotalStatistics>
-
memoryType
- Returns:
- a
VmaDetailedStatistics
.Buffer view of thememoryType
field.
-
memoryType
- Returns:
- a
VmaDetailedStatistics
view of the struct at the specified index of thememoryType
field.
-
memoryHeap
- Returns:
- a
VmaDetailedStatistics
.Buffer view of thememoryHeap
field.
-
memoryHeap
- Returns:
- a
VmaDetailedStatistics
view of the struct at the specified index of thememoryHeap
field.
-
total
- Returns:
- a
VmaDetailedStatistics
view of thetotal
field.
-
malloc
Returns a newVmaTotalStatistics
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaTotalStatistics
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaTotalStatistics
instance allocated withBufferUtils
. -
create
Returns a newVmaTotalStatistics
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaTotalStatistics.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVmaTotalStatistics.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVmaTotalStatistics.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVmaTotalStatistics.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVmaTotalStatistics
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaTotalStatistics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVmaTotalStatistics.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVmaTotalStatistics.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-