Package org.lwjgl.util.vma
Class VmaDetailedStatistics
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VmaDetailedStatistics {
{@link VmaStatistics VmaStatistics} statistics;
uint32_t unusedRangeCount;
VkDeviceSize allocationSizeMin;
VkDeviceSize allocationSizeMax;
VkDeviceSize unusedRangeSizeMin;
VkDeviceSize unusedRangeSizeMax;
}
-
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.static final int
The struct member offsets.static final int
The struct member offsets.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
ConstructorsConstructorDescriptionVmaDetailedStatistics
(ByteBuffer container) Creates aVmaDetailedStatistics
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
long
static VmaDetailedStatistics
calloc()
Returns a newVmaDetailedStatistics
instance allocated withmemCalloc
.static VmaDetailedStatistics.Buffer
calloc
(int capacity) Returns a newVmaDetailedStatistics.Buffer
instance allocated withmemCalloc
.static VmaDetailedStatistics.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVmaDetailedStatistics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaDetailedStatistics
calloc
(MemoryStack stack) Returns a newVmaDetailedStatistics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaDetailedStatistics
create()
Returns a newVmaDetailedStatistics
instance allocated withBufferUtils
.static VmaDetailedStatistics.Buffer
create
(int capacity) Returns a newVmaDetailedStatistics.Buffer
instance allocated withBufferUtils
.static VmaDetailedStatistics
create
(long address) Returns a newVmaDetailedStatistics
instance for the specified memory address.static VmaDetailedStatistics.Buffer
create
(long address, int capacity) Create aVmaDetailedStatistics.Buffer
instance at the specified memory.static @Nullable VmaDetailedStatistics
createSafe
(long address) static @Nullable VmaDetailedStatistics.Buffer
createSafe
(long address, int capacity) static VmaDetailedStatistics
malloc()
Returns a newVmaDetailedStatistics
instance allocated withmemAlloc
.static VmaDetailedStatistics.Buffer
malloc
(int capacity) Returns a newVmaDetailedStatistics.Buffer
instance allocated withmemAlloc
.static VmaDetailedStatistics.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVmaDetailedStatistics.Buffer
instance allocated on the specifiedMemoryStack
.static VmaDetailedStatistics
malloc
(MemoryStack stack) Returns a newVmaDetailedStatistics
instance allocated on the specifiedMemoryStack
.static long
nallocationSizeMax
(long struct) Unsafe version ofallocationSizeMax()
.static long
nallocationSizeMin
(long struct) Unsafe version ofallocationSizeMin()
.static VmaStatistics
nstatistics
(long struct) Unsafe version ofstatistics()
.static int
nunusedRangeCount
(long struct) Unsafe version ofunusedRangeCount()
.static long
nunusedRangeSizeMax
(long struct) Unsafe version ofunusedRangeSizeMax()
.static long
nunusedRangeSizeMin
(long struct) Unsafe version ofunusedRangeSizeMin()
.int
sizeof()
Returnssizeof(struct)
.int
long
long
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. -
STATISTICS
public static final int STATISTICSThe struct member offsets. -
UNUSEDRANGECOUNT
public static final int UNUSEDRANGECOUNTThe struct member offsets. -
ALLOCATIONSIZEMIN
public static final int ALLOCATIONSIZEMINThe struct member offsets. -
ALLOCATIONSIZEMAX
public static final int ALLOCATIONSIZEMAXThe struct member offsets. -
UNUSEDRANGESIZEMIN
public static final int UNUSEDRANGESIZEMINThe struct member offsets. -
UNUSEDRANGESIZEMAX
public static final int UNUSEDRANGESIZEMAXThe struct member offsets.
-
-
Constructor Details
-
VmaDetailedStatistics
Creates aVmaDetailedStatistics
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<VmaDetailedStatistics>
-
statistics
- Returns:
- a
VmaStatistics
view of thestatistics
field.
-
unusedRangeCount
public int unusedRangeCount()- Returns:
- the value of the
unusedRangeCount
field.
-
allocationSizeMin
public long allocationSizeMin()- Returns:
- the value of the
allocationSizeMin
field.
-
allocationSizeMax
public long allocationSizeMax()- Returns:
- the value of the
allocationSizeMax
field.
-
unusedRangeSizeMin
public long unusedRangeSizeMin()- Returns:
- the value of the
unusedRangeSizeMin
field.
-
unusedRangeSizeMax
public long unusedRangeSizeMax()- Returns:
- the value of the
unusedRangeSizeMax
field.
-
malloc
Returns a newVmaDetailedStatistics
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaDetailedStatistics
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaDetailedStatistics
instance allocated withBufferUtils
. -
create
Returns a newVmaDetailedStatistics
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaDetailedStatistics.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVmaDetailedStatistics.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVmaDetailedStatistics.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVmaDetailedStatistics.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVmaDetailedStatistics
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaDetailedStatistics
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVmaDetailedStatistics.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVmaDetailedStatistics.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nstatistics
Unsafe version ofstatistics()
. -
nunusedRangeCount
public static int nunusedRangeCount(long struct) Unsafe version ofunusedRangeCount()
. -
nallocationSizeMin
public static long nallocationSizeMin(long struct) Unsafe version ofallocationSizeMin()
. -
nallocationSizeMax
public static long nallocationSizeMax(long struct) Unsafe version ofallocationSizeMax()
. -
nunusedRangeSizeMin
public static long nunusedRangeSizeMin(long struct) Unsafe version ofunusedRangeSizeMin()
. -
nunusedRangeSizeMax
public static long nunusedRangeSizeMax(long struct) Unsafe version ofunusedRangeSizeMax()
.
-