Package org.lwjgl.util.vma
Class VmaPoolStats
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaPoolStats
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaPoolStats extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes parameter of existingVmaPool.Layout
struct VmaPoolStats { VkDeviceSizesize(); VkDeviceSizeunusedSize(); size_tallocationCount(); size_tunusedRangeCount(); size_tblockCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaPoolStats.BufferAn array ofVmaPoolStatsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOCATIONCOUNT
BLOCKCOUNT
SIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUNUSEDRANGECOUNT
UNUSEDSIZEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VmaPoolStats(java.nio.ByteBuffer container)Creates aVmaPoolStatsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longallocationCount()number ofVmaAllocationobjects created from this pool that were not destroyedlongblockCount()number ofVkDeviceMemoryblocks allocated for this poolstatic VmaPoolStatscalloc()Returns a newVmaPoolStatsinstance allocated withmemCalloc.static VmaPoolStats.Buffercalloc(int capacity)Returns a newVmaPoolStats.Bufferinstance allocated withmemCalloc.static VmaPoolStats.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaPoolStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaPoolStatscalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaPoolStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaPoolStatscallocStack()Deprecated.static VmaPoolStats.BuffercallocStack(int capacity)Deprecated.static VmaPoolStats.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaPoolStatscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VmaPoolStatscreate()Returns a newVmaPoolStatsinstance allocated withBufferUtils.static VmaPoolStats.Buffercreate(int capacity)Returns a newVmaPoolStats.Bufferinstance allocated withBufferUtils.static VmaPoolStatscreate(long address)Returns a newVmaPoolStatsinstance for the specified memory address.static VmaPoolStats.Buffercreate(long address, int capacity)Create aVmaPoolStats.Bufferinstance at the specified memory.static VmaPoolStatscreateSafe(long address)static VmaPoolStats.BuffercreateSafe(long address, int capacity)static VmaPoolStatsmalloc()Returns a newVmaPoolStatsinstance allocated withmemAlloc.static VmaPoolStats.Buffermalloc(int capacity)Returns a newVmaPoolStats.Bufferinstance allocated withmemAlloc.static VmaPoolStats.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaPoolStats.Bufferinstance allocated on the specifiedMemoryStack.static VmaPoolStatsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaPoolStatsinstance allocated on the specifiedMemoryStack.static VmaPoolStatsmallocStack()Deprecated.static VmaPoolStats.BuffermallocStack(int capacity)Deprecated.static VmaPoolStats.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaPoolStatsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longnallocationCount(long struct)Unsafe version ofallocationCount().static longnblockCount(long struct)Unsafe version ofblockCount().static longnsize(long struct)Unsafe version ofsize().static longnunusedRangeCount(long struct)Unsafe version ofunusedRangeCount().static longnunusedSize(long struct)Unsafe version ofunusedSize().longsize()total amount ofVkDeviceMemoryallocated from Vulkan for this pool, in bytesintsizeof()longunusedRangeCount()number of continuous memory ranges in the pool not used by anyVmaAllocationlongunusedSize()total number of bytes in the pool not used by anyVmaAllocation
-
-
-
Constructor Detail
-
VmaPoolStats
public VmaPoolStats(java.nio.ByteBuffer container)
Creates aVmaPoolStatsinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
size
public long size()
total amount ofVkDeviceMemoryallocated from Vulkan for this pool, in bytes
-
unusedSize
public long unusedSize()
total number of bytes in the pool not used by anyVmaAllocation
-
allocationCount
public long allocationCount()
number ofVmaAllocationobjects created from this pool that were not destroyed
-
unusedRangeCount
public long unusedRangeCount()
number of continuous memory ranges in the pool not used by anyVmaAllocation
-
blockCount
public long blockCount()
number ofVkDeviceMemoryblocks allocated for this pool
-
malloc
public static VmaPoolStats malloc()
Returns a newVmaPoolStatsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaPoolStats calloc()
Returns a newVmaPoolStatsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaPoolStats create()
Returns a newVmaPoolStatsinstance allocated withBufferUtils.
-
create
public static VmaPoolStats create(long address)
Returns a newVmaPoolStatsinstance for the specified memory address.
-
createSafe
@Nullable public static VmaPoolStats createSafe(long address)
-
malloc
public static VmaPoolStats.Buffer malloc(int capacity)
Returns a newVmaPoolStats.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaPoolStats.Buffer calloc(int capacity)
Returns a newVmaPoolStats.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaPoolStats.Buffer create(int capacity)
Returns a newVmaPoolStats.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaPoolStats.Buffer create(long address, int capacity)
Create aVmaPoolStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaPoolStats.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VmaPoolStats mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaPoolStats callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaPoolStats mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaPoolStats callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaPoolStats.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VmaPoolStats.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaPoolStats.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VmaPoolStats.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VmaPoolStats malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaPoolStatsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaPoolStats calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaPoolStatsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaPoolStats.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaPoolStats.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaPoolStats.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaPoolStats.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsize
public static long nsize(long struct)
Unsafe version ofsize().
-
nunusedSize
public static long nunusedSize(long struct)
Unsafe version ofunusedSize().
-
nallocationCount
public static long nallocationCount(long struct)
Unsafe version ofallocationCount().
-
nunusedRangeCount
public static long nunusedRangeCount(long struct)
Unsafe version ofunusedRangeCount().
-
nblockCount
public static long nblockCount(long struct)
Unsafe version ofblockCount().
-
-