public class VmaDefragmentationInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Defragment.
This is a part of the old interface. It is recommended to use structure VmaDefragmentationInfo2 and function DefragmentationBegin instead.
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 –
maximum number of allocations that can be moved to different place.
Default is UINT32_MAX, which means no limit.
struct VmaDefragmentationInfo {
VkDeviceSize maxBytesToMove;
uint32_t maxAllocationsToMove;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VmaDefragmentationInfo.Buffer
An array of
VmaDefragmentationInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAXALLOCATIONSTOMOVE
The struct member offsets.
|
static int |
MAXBYTESTOMOVE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VmaDefragmentationInfo(java.nio.ByteBuffer container)
Creates a
VmaDefragmentationInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VmaDefragmentationInfo |
calloc()
Returns a new
VmaDefragmentationInfo instance allocated with memCalloc. |
static VmaDefragmentationInfo.Buffer |
calloc(int capacity)
Returns a new
VmaDefragmentationInfo.Buffer instance allocated with memCalloc. |
static VmaDefragmentationInfo |
callocStack()
Returns a new
VmaDefragmentationInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationInfo.Buffer |
callocStack(int capacity)
Returns a new
VmaDefragmentationInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VmaDefragmentationInfo |
create()
Returns a new
VmaDefragmentationInfo instance allocated with BufferUtils. |
static VmaDefragmentationInfo.Buffer |
create(int capacity)
Returns a new
VmaDefragmentationInfo.Buffer instance allocated with BufferUtils. |
static VmaDefragmentationInfo |
create(long address)
Returns a new
VmaDefragmentationInfo instance for the specified memory address. |
static VmaDefragmentationInfo.Buffer |
create(long address,
int capacity)
Create a
VmaDefragmentationInfo.Buffer instance at the specified memory. |
static VmaDefragmentationInfo |
createSafe(long address)
|
static VmaDefragmentationInfo.Buffer |
createSafe(long address,
int capacity)
|
static VmaDefragmentationInfo |
malloc()
Returns a new
VmaDefragmentationInfo instance allocated with memAlloc. |
static VmaDefragmentationInfo.Buffer |
malloc(int capacity)
Returns a new
VmaDefragmentationInfo.Buffer instance allocated with memAlloc. |
static VmaDefragmentationInfo |
mallocStack()
Returns a new
VmaDefragmentationInfo instance allocated on the thread-local MemoryStack. |
static VmaDefragmentationInfo.Buffer |
mallocStack(int capacity)
Returns a new
VmaDefragmentationInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VmaDefragmentationInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationInfo.Buffer instance allocated on the specified MemoryStack. |
static VmaDefragmentationInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VmaDefragmentationInfo instance allocated on the specified MemoryStack. |
int |
maxAllocationsToMove()
Returns the value of the
maxAllocationsToMove field. |
VmaDefragmentationInfo |
maxAllocationsToMove(int value)
Sets the specified value to the
maxAllocationsToMove field. |
long |
maxBytesToMove()
Returns the value of the
maxBytesToMove field. |
VmaDefragmentationInfo |
maxBytesToMove(long value)
Sets the specified value to the
maxBytesToMove field. |
static int |
nmaxAllocationsToMove(long struct)
Unsafe version of
maxAllocationsToMove(). |
static void |
nmaxAllocationsToMove(long struct,
int value)
Unsafe version of
maxAllocationsToMove. |
static long |
nmaxBytesToMove(long struct)
Unsafe version of
maxBytesToMove(). |
static void |
nmaxBytesToMove(long struct,
long value)
Unsafe version of
maxBytesToMove. |
VmaDefragmentationInfo |
set(long maxBytesToMove,
int maxAllocationsToMove)
Initializes this struct with the specified values.
|
VmaDefragmentationInfo |
set(VmaDefragmentationInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MAXBYTESTOMOVE
public static final int MAXALLOCATIONSTOMOVE
public VmaDefragmentationInfo(java.nio.ByteBuffer container)
VmaDefragmentationInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long maxBytesToMove()
maxBytesToMove field.public int maxAllocationsToMove()
maxAllocationsToMove field.public VmaDefragmentationInfo maxBytesToMove(long value)
maxBytesToMove field.public VmaDefragmentationInfo maxAllocationsToMove(int value)
maxAllocationsToMove field.public VmaDefragmentationInfo set(long maxBytesToMove, int maxAllocationsToMove)
public VmaDefragmentationInfo set(VmaDefragmentationInfo src)
src - the source structpublic static VmaDefragmentationInfo malloc()
VmaDefragmentationInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VmaDefragmentationInfo calloc()
VmaDefragmentationInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VmaDefragmentationInfo create()
VmaDefragmentationInfo instance allocated with BufferUtils.public static VmaDefragmentationInfo create(long address)
VmaDefragmentationInfo instance for the specified memory address.@Nullable public static VmaDefragmentationInfo createSafe(long address)
public static VmaDefragmentationInfo.Buffer malloc(int capacity)
VmaDefragmentationInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaDefragmentationInfo.Buffer calloc(int capacity)
VmaDefragmentationInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VmaDefragmentationInfo.Buffer create(int capacity)
VmaDefragmentationInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VmaDefragmentationInfo.Buffer create(long address, int capacity)
VmaDefragmentationInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VmaDefragmentationInfo.Buffer createSafe(long address, int capacity)
public static VmaDefragmentationInfo mallocStack()
VmaDefragmentationInfo instance allocated on the thread-local MemoryStack.public static VmaDefragmentationInfo callocStack()
VmaDefragmentationInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VmaDefragmentationInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VmaDefragmentationInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VmaDefragmentationInfo callocStack(org.lwjgl.system.MemoryStack stack)
VmaDefragmentationInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VmaDefragmentationInfo.Buffer mallocStack(int capacity)
VmaDefragmentationInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VmaDefragmentationInfo.Buffer callocStack(int capacity)
VmaDefragmentationInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VmaDefragmentationInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaDefragmentationInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VmaDefragmentationInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VmaDefragmentationInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nmaxBytesToMove(long struct)
maxBytesToMove().public static int nmaxAllocationsToMove(long struct)
maxAllocationsToMove().public static void nmaxBytesToMove(long struct,
long value)
maxBytesToMove.public static void nmaxAllocationsToMove(long struct,
int value)
maxAllocationsToMove.Copyright LWJGL. All Rights Reserved. License terms.