Package org.lwjgl.util.vma
Class VmaDefragmentationInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaDefragmentationInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaDefragmentationInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDeprecated. Optional configuration parameters to be passed to functionDefragment.This is a part of the old interface. It is recommended to use structure
VmaDefragmentationInfo2and functionDefragmentationBegininstead.Layout
struct VmaDefragmentationInfo { VkDeviceSizemaxBytesToMove(); uint32_tmaxAllocationsToMove(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaDefragmentationInfo.BufferAn array ofVmaDefragmentationInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXALLOCATIONSTOMOVE
MAXBYTESTOMOVEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VmaDefragmentationInfo(java.nio.ByteBuffer container)Creates aVmaDefragmentationInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VmaDefragmentationInfocalloc()Returns a newVmaDefragmentationInfoinstance allocated withmemCalloc.static VmaDefragmentationInfo.Buffercalloc(int capacity)Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemCalloc.static VmaDefragmentationInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationInfocallocStack()Deprecated.static VmaDefragmentationInfo.BuffercallocStack(int capacity)Deprecated.static VmaDefragmentationInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaDefragmentationInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VmaDefragmentationInfocreate()Returns a newVmaDefragmentationInfoinstance allocated withBufferUtils.static VmaDefragmentationInfo.Buffercreate(int capacity)Returns a newVmaDefragmentationInfo.Bufferinstance allocated withBufferUtils.static VmaDefragmentationInfocreate(long address)Returns a newVmaDefragmentationInfoinstance for the specified memory address.static VmaDefragmentationInfo.Buffercreate(long address, int capacity)Create aVmaDefragmentationInfo.Bufferinstance at the specified memory.static VmaDefragmentationInfocreateSafe(long address)static VmaDefragmentationInfo.BuffercreateSafe(long address, int capacity)static VmaDefragmentationInfomalloc()Returns a newVmaDefragmentationInfoinstance allocated withmemAlloc.static VmaDefragmentationInfo.Buffermalloc(int capacity)Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemAlloc.static VmaDefragmentationInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaDefragmentationInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStack.static VmaDefragmentationInfomallocStack()Deprecated.static VmaDefragmentationInfo.BuffermallocStack(int capacity)Deprecated.static VmaDefragmentationInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VmaDefragmentationInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmaxAllocationsToMove()maximum number of allocations that can be moved to different place.VmaDefragmentationInfomaxAllocationsToMove(int value)Sets the specified value to themaxAllocationsToMove()field.longmaxBytesToMove()maximum total numbers of bytes that can be copied while moving allocations to different places.VmaDefragmentationInfomaxBytesToMove(long value)Sets the specified value to themaxBytesToMove()field.static intnmaxAllocationsToMove(long struct)Unsafe version ofmaxAllocationsToMove().static voidnmaxAllocationsToMove(long struct, int value)Unsafe version ofmaxAllocationsToMove.static longnmaxBytesToMove(long struct)Unsafe version ofmaxBytesToMove().static voidnmaxBytesToMove(long struct, long value)Unsafe version ofmaxBytesToMove.VmaDefragmentationInfoset(long maxBytesToMove, int maxAllocationsToMove)Initializes this struct with the specified values.VmaDefragmentationInfoset(VmaDefragmentationInfo src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VmaDefragmentationInfo
public VmaDefragmentationInfo(java.nio.ByteBuffer container)
Creates aVmaDefragmentationInfoinstance 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
-
maxBytesToMove
public long maxBytesToMove()
maximum total numbers of bytes that can be copied while moving allocations to different places.Default is
VK_WHOLE_SIZE, which means no limit.
-
maxAllocationsToMove
public int maxAllocationsToMove()
maximum number of allocations that can be moved to different place.Default is
UINT32_MAX, which means no limit.
-
maxBytesToMove
public VmaDefragmentationInfo maxBytesToMove(long value)
Sets the specified value to themaxBytesToMove()field.
-
maxAllocationsToMove
public VmaDefragmentationInfo maxAllocationsToMove(int value)
Sets the specified value to themaxAllocationsToMove()field.
-
set
public VmaDefragmentationInfo set(long maxBytesToMove, int maxAllocationsToMove)
Initializes this struct with the specified values.
-
set
public VmaDefragmentationInfo set(VmaDefragmentationInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VmaDefragmentationInfo malloc()
Returns a newVmaDefragmentationInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaDefragmentationInfo calloc()
Returns a newVmaDefragmentationInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaDefragmentationInfo create()
Returns a newVmaDefragmentationInfoinstance allocated withBufferUtils.
-
create
public static VmaDefragmentationInfo create(long address)
Returns a newVmaDefragmentationInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VmaDefragmentationInfo createSafe(long address)
-
malloc
public static VmaDefragmentationInfo.Buffer malloc(int capacity)
Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaDefragmentationInfo.Buffer calloc(int capacity)
Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaDefragmentationInfo.Buffer create(int capacity)
Returns a newVmaDefragmentationInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaDefragmentationInfo.Buffer create(long address, int capacity)
Create aVmaDefragmentationInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaDefragmentationInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VmaDefragmentationInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaDefragmentationInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaDefragmentationInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VmaDefragmentationInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaDefragmentationInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VmaDefragmentationInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VmaDefragmentationInfo.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 VmaDefragmentationInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VmaDefragmentationInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaDefragmentationInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaDefragmentationInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaDefragmentationInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmaxBytesToMove
public static long nmaxBytesToMove(long struct)
Unsafe version ofmaxBytesToMove().
-
nmaxAllocationsToMove
public static int nmaxAllocationsToMove(long struct)
Unsafe version ofmaxAllocationsToMove().
-
nmaxBytesToMove
public static void nmaxBytesToMove(long struct, long value)Unsafe version ofmaxBytesToMove.
-
nmaxAllocationsToMove
public static void nmaxAllocationsToMove(long struct, int value)Unsafe version ofmaxAllocationsToMove.
-
-