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.NativeResource
Deprecated. Optional configuration parameters to be passed to functionDefragment
.This is a part of the old interface. It is recommended to use structure
VmaDefragmentationInfo2
and functionDefragmentationBegin
instead.Member documentation
maxBytesToMove
– maximum total numbers of bytes that can be copied while moving allocations to different places.Default is
VK_WHOLE_SIZ
E, which means no limit.maxAllocationsToMove
– maximum number of allocations that can be moved to different place.Default is
UINT32_MAX
, which means no limit.
Layout
struct VmaDefragmentationInfo { VkDeviceSize maxBytesToMove; uint32_t maxAllocationsToMove; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VmaDefragmentationInfo.Buffer
An array ofVmaDefragmentationInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MAXALLOCATIONSTOMOVE
MAXBYTESTOMOVEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VmaDefragmentationInfo(java.nio.ByteBuffer container)
Creates aVmaDefragmentationInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VmaDefragmentationInfo
calloc()
Returns a newVmaDefragmentationInfo
instance allocated withmemCalloc
.static VmaDefragmentationInfo.Buffer
calloc(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemCalloc
.static VmaDefragmentationInfo
callocStack()
Returns a newVmaDefragmentationInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VmaDefragmentationInfo.Buffer
callocStack(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VmaDefragmentationInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaDefragmentationInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaDefragmentationInfo
create()
Returns a newVmaDefragmentationInfo
instance allocated withBufferUtils
.static VmaDefragmentationInfo.Buffer
create(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withBufferUtils
.static VmaDefragmentationInfo
create(long address)
Returns a newVmaDefragmentationInfo
instance for the specified memory address.static VmaDefragmentationInfo.Buffer
create(long address, int capacity)
Create aVmaDefragmentationInfo.Buffer
instance at the specified memory.static VmaDefragmentationInfo
createSafe(long address)
static VmaDefragmentationInfo.Buffer
createSafe(long address, int capacity)
static VmaDefragmentationInfo
malloc()
Returns a newVmaDefragmentationInfo
instance allocated withmemAlloc
.static VmaDefragmentationInfo.Buffer
malloc(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemAlloc
.static VmaDefragmentationInfo
mallocStack()
Returns a newVmaDefragmentationInfo
instance allocated on the thread-localMemoryStack
.static VmaDefragmentationInfo.Buffer
mallocStack(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VmaDefragmentationInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VmaDefragmentationInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
.int
maxAllocationsToMove()
Returns the value of themaxAllocationsToMove
field.VmaDefragmentationInfo
maxAllocationsToMove(int value)
Sets the specified value to themaxAllocationsToMove
field.long
maxBytesToMove()
Returns the value of themaxBytesToMove
field.VmaDefragmentationInfo
maxBytesToMove(long value)
Sets the specified value to themaxBytesToMove
field.static int
nmaxAllocationsToMove(long struct)
Unsafe version ofmaxAllocationsToMove()
.static void
nmaxAllocationsToMove(long struct, int value)
Unsafe version ofmaxAllocationsToMove
.static long
nmaxBytesToMove(long struct)
Unsafe version ofmaxBytesToMove()
.static void
nmaxBytesToMove(long struct, long value)
Unsafe version ofmaxBytesToMove
.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()
-
-
-
Constructor Detail
-
VmaDefragmentationInfo
public VmaDefragmentationInfo(java.nio.ByteBuffer container)
Creates aVmaDefragmentationInfo
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
maxBytesToMove
public long maxBytesToMove()
Returns the value of themaxBytesToMove
field.
-
maxAllocationsToMove
public int maxAllocationsToMove()
Returns the value of themaxAllocationsToMove
field.
-
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 newVmaDefragmentationInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VmaDefragmentationInfo calloc()
Returns a newVmaDefragmentationInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VmaDefragmentationInfo create()
Returns a newVmaDefragmentationInfo
instance allocated withBufferUtils
.
-
create
public static VmaDefragmentationInfo create(long address)
Returns a newVmaDefragmentationInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VmaDefragmentationInfo createSafe(long address)
-
malloc
public static VmaDefragmentationInfo.Buffer malloc(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VmaDefragmentationInfo.Buffer calloc(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VmaDefragmentationInfo.Buffer create(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VmaDefragmentationInfo.Buffer create(long address, int capacity)
Create aVmaDefragmentationInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VmaDefragmentationInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VmaDefragmentationInfo mallocStack()
Returns a newVmaDefragmentationInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VmaDefragmentationInfo callocStack()
Returns a newVmaDefragmentationInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VmaDefragmentationInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VmaDefragmentationInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VmaDefragmentationInfo.Buffer mallocStack(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VmaDefragmentationInfo.Buffer callocStack(int capacity)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VmaDefragmentationInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VmaDefragmentationInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-