Package org.lwjgl.util.vma
Class VmaStatistics
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VmaStatistics {
uint32_t blockCount;
uint32_t allocationCount;
VkDeviceSize blockBytes;
VkDeviceSize allocationBytes;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVmaStatistics
(ByteBuffer container) Creates aVmaStatistics
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
int
long
int
static VmaStatistics
calloc()
Returns a newVmaStatistics
instance allocated withmemCalloc
.static VmaStatistics.Buffer
calloc
(int capacity) Returns a newVmaStatistics.Buffer
instance allocated withmemCalloc
.static VmaStatistics.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVmaStatistics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaStatistics
calloc
(MemoryStack stack) Returns a newVmaStatistics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaStatistics
create()
Returns a newVmaStatistics
instance allocated withBufferUtils
.static VmaStatistics.Buffer
create
(int capacity) Returns a newVmaStatistics.Buffer
instance allocated withBufferUtils
.static VmaStatistics
create
(long address) Returns a newVmaStatistics
instance for the specified memory address.static VmaStatistics.Buffer
create
(long address, int capacity) Create aVmaStatistics.Buffer
instance at the specified memory.static @Nullable VmaStatistics
createSafe
(long address) static @Nullable VmaStatistics.Buffer
createSafe
(long address, int capacity) static VmaStatistics
malloc()
Returns a newVmaStatistics
instance allocated withmemAlloc
.static VmaStatistics.Buffer
malloc
(int capacity) Returns a newVmaStatistics.Buffer
instance allocated withmemAlloc
.static VmaStatistics.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVmaStatistics.Buffer
instance allocated on the specifiedMemoryStack
.static VmaStatistics
malloc
(MemoryStack stack) Returns a newVmaStatistics
instance allocated on the specifiedMemoryStack
.static long
nallocationBytes
(long struct) Unsafe version ofallocationBytes()
.static int
nallocationCount
(long struct) Unsafe version ofallocationCount()
.static long
nblockBytes
(long struct) Unsafe version ofblockBytes()
.static int
nblockCount
(long struct) Unsafe version ofblockCount()
.int
sizeof()
Returnssizeof(struct)
.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. -
BLOCKCOUNT
public static final int BLOCKCOUNTThe struct member offsets. -
ALLOCATIONCOUNT
public static final int ALLOCATIONCOUNTThe struct member offsets. -
BLOCKBYTES
public static final int BLOCKBYTESThe struct member offsets. -
ALLOCATIONBYTES
public static final int ALLOCATIONBYTESThe struct member offsets.
-
-
Constructor Details
-
VmaStatistics
Creates aVmaStatistics
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<VmaStatistics>
-
blockCount
public int blockCount()- Returns:
- the value of the
blockCount
field.
-
allocationCount
public int allocationCount()- Returns:
- the value of the
allocationCount
field.
-
blockBytes
public long blockBytes()- Returns:
- the value of the
blockBytes
field.
-
allocationBytes
public long allocationBytes()- Returns:
- the value of the
allocationBytes
field.
-
malloc
Returns a newVmaStatistics
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaStatistics
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaStatistics
instance allocated withBufferUtils
. -
create
Returns a newVmaStatistics
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaStatistics.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVmaStatistics.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVmaStatistics.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVmaStatistics.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVmaStatistics
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaStatistics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVmaStatistics.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVmaStatistics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nblockCount
public static int nblockCount(long struct) Unsafe version ofblockCount()
. -
nallocationCount
public static int nallocationCount(long struct) Unsafe version ofallocationCount()
. -
nblockBytes
public static long nblockBytes(long struct) Unsafe version ofblockBytes()
. -
nallocationBytes
public static long nallocationBytes(long struct) Unsafe version ofallocationBytes()
.
-