Package org.lwjgl.util.vma
Class VmaDefragmentationInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VmaDefragmentationInfo
extends Struct<VmaDefragmentationInfo>
implements NativeResource
struct VmaDefragmentationInfo {
VmaDefragmentationFlags flags;
VmaPool pool;
VkDeviceSize maxBytesPerPass;
uint32_t maxAllocationsPerPass;
{@link VmaCheckDefragmentationBreakFunctionI PFN_vmaCheckDefragmentationBreakFunction} pfnBreakCallback;
void * pBreakCallbackUserData;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVmaDefragmentationInfo
(ByteBuffer container) Creates aVmaDefragmentationInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaDefragmentationInfo
calloc()
Returns a newVmaDefragmentationInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaDefragmentationInfo
calloc
(MemoryStack stack) Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaDefragmentationInfo
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VmaDefragmentationInfo
callocStack
(MemoryStack stack) Deprecated.static VmaDefragmentationInfo
create()
Returns a newVmaDefragmentationInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newVmaDefragmentationInfo.Buffer
instance allocated withBufferUtils
.static VmaDefragmentationInfo
create
(long address) Returns a newVmaDefragmentationInfo
instance for the specified memory address.create
(long address, int capacity) Create aVmaDefragmentationInfo.Buffer
instance at the specified memory.static @Nullable VmaDefragmentationInfo
createSafe
(long address) static @Nullable VmaDefragmentationInfo.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.static VmaDefragmentationInfo
malloc()
Returns a newVmaDefragmentationInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VmaDefragmentationInfo
malloc
(MemoryStack stack) Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
.static VmaDefragmentationInfo
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VmaDefragmentationInfo
mallocStack
(MemoryStack stack) Deprecated.int
maxAllocationsPerPass
(int value) Sets the specified value to themaxAllocationsPerPass
field.long
maxBytesPerPass
(long value) Sets the specified value to themaxBytesPerPass
field.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nmaxAllocationsPerPass
(long struct) Unsafe version ofmaxAllocationsPerPass()
.static void
nmaxAllocationsPerPass
(long struct, int value) Unsafe version ofmaxAllocationsPerPass
.static long
nmaxBytesPerPass
(long struct) Unsafe version ofmaxBytesPerPass()
.static void
nmaxBytesPerPass
(long struct, long value) Unsafe version ofmaxBytesPerPass
.static long
npBreakCallbackUserData
(long struct) Unsafe version ofpBreakCallbackUserData()
.static void
npBreakCallbackUserData
(long struct, long value) Unsafe version ofpBreakCallbackUserData
.static @Nullable VmaCheckDefragmentationBreakFunction
npfnBreakCallback
(long struct) Unsafe version ofpfnBreakCallback()
.static void
npfnBreakCallback
(long struct, @Nullable VmaCheckDefragmentationBreakFunctionI value) Unsafe version ofpfnBreakCallback
.static long
npool
(long struct) Unsafe version ofpool()
.static void
npool
(long struct, long value) Unsafe version ofpool
.long
pBreakCallbackUserData
(long value) Sets the specified value to thepBreakCallbackUserData
field.@Nullable VmaCheckDefragmentationBreakFunction
pfnBreakCallback
(@Nullable VmaCheckDefragmentationBreakFunctionI value) Sets the specified value to thepfnBreakCallback
field.long
pool()
pool
(long value) Sets the specified value to thepool
field.set
(int flags, long pool, long maxBytesPerPass, int maxAllocationsPerPass, VmaCheckDefragmentationBreakFunctionI pfnBreakCallback, long pBreakCallbackUserData) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
POOL
public static final int POOLThe struct member offsets. -
MAXBYTESPERPASS
public static final int MAXBYTESPERPASSThe struct member offsets. -
MAXALLOCATIONSPERPASS
public static final int MAXALLOCATIONSPERPASSThe struct member offsets. -
PFNBREAKCALLBACK
public static final int PFNBREAKCALLBACKThe struct member offsets. -
PBREAKCALLBACKUSERDATA
public static final int PBREAKCALLBACKUSERDATAThe struct member offsets.
-
-
Constructor Details
-
VmaDefragmentationInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VmaDefragmentationInfo>
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
pool
public long pool()- Returns:
- the value of the
pool
field.
-
maxBytesPerPass
public long maxBytesPerPass()- Returns:
- the value of the
maxBytesPerPass
field.
-
maxAllocationsPerPass
public int maxAllocationsPerPass()- Returns:
- the value of the
maxAllocationsPerPass
field.
-
pfnBreakCallback
- Returns:
- the value of the
pfnBreakCallback
field.
-
pBreakCallbackUserData
public long pBreakCallbackUserData()- Returns:
- the value of the
pBreakCallbackUserData
field.
-
flags
Sets the specified value to theflags
field. -
pool
Sets the specified value to thepool
field. -
maxBytesPerPass
Sets the specified value to themaxBytesPerPass
field. -
maxAllocationsPerPass
Sets the specified value to themaxAllocationsPerPass
field. -
pfnBreakCallback
public VmaDefragmentationInfo pfnBreakCallback(@Nullable VmaCheckDefragmentationBreakFunctionI value) Sets the specified value to thepfnBreakCallback
field. -
pBreakCallbackUserData
Sets the specified value to thepBreakCallbackUserData
field. -
set
public VmaDefragmentationInfo set(int flags, long pool, long maxBytesPerPass, int maxAllocationsPerPass, VmaCheckDefragmentationBreakFunctionI pfnBreakCallback, long pBreakCallbackUserData) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVmaDefragmentationInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaDefragmentationInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaDefragmentationInfo
instance allocated withBufferUtils
. -
create
Returns a newVmaDefragmentationInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVmaDefragmentationInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVmaDefragmentationInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static VmaDefragmentationInfo.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VmaDefragmentationInfo.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaDefragmentationInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVmaDefragmentationInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
npool
public static long npool(long struct) Unsafe version ofpool()
. -
nmaxBytesPerPass
public static long nmaxBytesPerPass(long struct) Unsafe version ofmaxBytesPerPass()
. -
nmaxAllocationsPerPass
public static int nmaxAllocationsPerPass(long struct) Unsafe version ofmaxAllocationsPerPass()
. -
npfnBreakCallback
Unsafe version ofpfnBreakCallback()
. -
npBreakCallbackUserData
public static long npBreakCallbackUserData(long struct) Unsafe version ofpBreakCallbackUserData()
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
npool
public static void npool(long struct, long value) Unsafe version ofpool
. -
nmaxBytesPerPass
public static void nmaxBytesPerPass(long struct, long value) Unsafe version ofmaxBytesPerPass
. -
nmaxAllocationsPerPass
public static void nmaxAllocationsPerPass(long struct, int value) Unsafe version ofmaxAllocationsPerPass
. -
npfnBreakCallback
public static void npfnBreakCallback(long struct, @Nullable VmaCheckDefragmentationBreakFunctionI value) Unsafe version ofpfnBreakCallback
. -
npBreakCallbackUserData
public static void npBreakCallbackUserData(long struct, long value) Unsafe version ofpBreakCallbackUserData
.
-