Package org.lwjgl.util.vma
Class VmaDetailedStatistics
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VmaDetailedStatistics {
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.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.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionVmaDetailedStatistics(ByteBuffer container) Creates aVmaDetailedStatisticsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlonglongstatic VmaDetailedStatisticscalloc()Returns a newVmaDetailedStatisticsinstance allocated withmemCalloc.static VmaDetailedStatistics.Buffercalloc(int capacity) Returns a newVmaDetailedStatistics.Bufferinstance allocated withmemCalloc.static VmaDetailedStatistics.Buffercalloc(int capacity, MemoryStack stack) Returns a newVmaDetailedStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDetailedStatisticscalloc(MemoryStack stack) Returns a newVmaDetailedStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDetailedStatisticscreate()Returns a newVmaDetailedStatisticsinstance allocated withBufferUtils.static VmaDetailedStatistics.Buffercreate(int capacity) Returns a newVmaDetailedStatistics.Bufferinstance allocated withBufferUtils.static VmaDetailedStatisticscreate(long address) Returns a newVmaDetailedStatisticsinstance for the specified memory address.static VmaDetailedStatistics.Buffercreate(long address, int capacity) Create aVmaDetailedStatistics.Bufferinstance at the specified memory.static @Nullable VmaDetailedStatisticscreateSafe(long address) static @Nullable VmaDetailedStatistics.BuffercreateSafe(long address, int capacity) static VmaDetailedStatisticsmalloc()Returns a newVmaDetailedStatisticsinstance allocated withmemAlloc.static VmaDetailedStatistics.Buffermalloc(int capacity) Returns a newVmaDetailedStatistics.Bufferinstance allocated withmemAlloc.static VmaDetailedStatistics.Buffermalloc(int capacity, MemoryStack stack) Returns a newVmaDetailedStatistics.Bufferinstance allocated on the specifiedMemoryStack.static VmaDetailedStatisticsmalloc(MemoryStack stack) Returns a newVmaDetailedStatisticsinstance allocated on the specifiedMemoryStack.static longnallocationSizeMax(long struct) Unsafe version ofallocationSizeMax().static longnallocationSizeMin(long struct) Unsafe version ofallocationSizeMin().static VmaStatisticsnstatistics(long struct) Unsafe version ofstatistics().static intnunusedRangeCount(long struct) Unsafe version ofunusedRangeCount().static longnunusedRangeSizeMax(long struct) Unsafe version ofunusedRangeSizeMax().static longnunusedRangeSizeMin(long struct) Unsafe version ofunusedRangeSizeMin().intsizeof()Returnssizeof(struct).intlonglongMethods 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. -
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 aVmaDetailedStatisticsinstance 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<VmaDetailedStatistics>
-
statistics
- Returns:
- a
VmaStatisticsview of thestatisticsfield.
-
unusedRangeCount
public int unusedRangeCount()- Returns:
- the value of the
unusedRangeCountfield.
-
allocationSizeMin
public long allocationSizeMin()- Returns:
- the value of the
allocationSizeMinfield.
-
allocationSizeMax
public long allocationSizeMax()- Returns:
- the value of the
allocationSizeMaxfield.
-
unusedRangeSizeMin
public long unusedRangeSizeMin()- Returns:
- the value of the
unusedRangeSizeMinfield.
-
unusedRangeSizeMax
public long unusedRangeSizeMax()- Returns:
- the value of the
unusedRangeSizeMaxfield.
-
malloc
Returns a newVmaDetailedStatisticsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVmaDetailedStatisticsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVmaDetailedStatisticsinstance allocated withBufferUtils. -
create
Returns a newVmaDetailedStatisticsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaDetailedStatistics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVmaDetailedStatistics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVmaDetailedStatistics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVmaDetailedStatistics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVmaDetailedStatisticsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVmaDetailedStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVmaDetailedStatistics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVmaDetailedStatistics.Bufferinstance allocated on the specifiedMemoryStackand 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().
-