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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aVmaDefragmentationInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaDefragmentationInfocalloc()Returns a newVmaDefragmentationInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationInfocalloc(MemoryStack stack) Returns a newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationInfoDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VmaDefragmentationInfocallocStack(MemoryStack stack) Deprecated.static VmaDefragmentationInfocreate()Returns a newVmaDefragmentationInfoinstance allocated withBufferUtils.create(int capacity) Returns a newVmaDefragmentationInfo.Bufferinstance allocated withBufferUtils.static VmaDefragmentationInfocreate(long address) Returns a newVmaDefragmentationInfoinstance for the specified memory address.create(long address, int capacity) Create aVmaDefragmentationInfo.Bufferinstance at the specified memory.static @Nullable VmaDefragmentationInfocreateSafe(long address) static @Nullable VmaDefragmentationInfo.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static VmaDefragmentationInfomalloc()Returns a newVmaDefragmentationInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaDefragmentationInfomalloc(MemoryStack stack) Returns a newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStack.static VmaDefragmentationInfoDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VmaDefragmentationInfomallocStack(MemoryStack stack) Deprecated.intmaxAllocationsPerPass(int value) Sets the specified value to themaxAllocationsPerPassfield.longmaxBytesPerPass(long value) Sets the specified value to themaxBytesPerPassfield.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmaxAllocationsPerPass(long struct) Unsafe version ofmaxAllocationsPerPass().static voidnmaxAllocationsPerPass(long struct, int value) Unsafe version ofmaxAllocationsPerPass.static longnmaxBytesPerPass(long struct) Unsafe version ofmaxBytesPerPass().static voidnmaxBytesPerPass(long struct, long value) Unsafe version ofmaxBytesPerPass.static longnpBreakCallbackUserData(long struct) Unsafe version ofpBreakCallbackUserData().static voidnpBreakCallbackUserData(long struct, long value) Unsafe version ofpBreakCallbackUserData.static @Nullable VmaCheckDefragmentationBreakFunctionnpfnBreakCallback(long struct) Unsafe version ofpfnBreakCallback().static voidnpfnBreakCallback(long struct, @Nullable VmaCheckDefragmentationBreakFunctionI value) Unsafe version ofpfnBreakCallback.static longnpool(long struct) Unsafe version ofpool().static voidnpool(long struct, long value) Unsafe version ofpool.longpBreakCallbackUserData(long value) Sets the specified value to thepBreakCallbackUserDatafield.@Nullable VmaCheckDefragmentationBreakFunctionpfnBreakCallback(@Nullable VmaCheckDefragmentationBreakFunctionI value) Sets the specified value to thepfnBreakCallbackfield.longpool()pool(long value) Sets the specified value to thepoolfield.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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VmaDefragmentationInfo>
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
pool
public long pool()- Returns:
- the value of the
poolfield.
-
maxBytesPerPass
public long maxBytesPerPass()- Returns:
- the value of the
maxBytesPerPassfield.
-
maxAllocationsPerPass
public int maxAllocationsPerPass()- Returns:
- the value of the
maxAllocationsPerPassfield.
-
pfnBreakCallback
- Returns:
- the value of the
pfnBreakCallbackfield.
-
pBreakCallbackUserData
public long pBreakCallbackUserData()- Returns:
- the value of the
pBreakCallbackUserDatafield.
-
flags
Sets the specified value to theflagsfield. -
pool
Sets the specified value to thepoolfield. -
maxBytesPerPass
Sets the specified value to themaxBytesPerPassfield. -
maxAllocationsPerPass
Sets the specified value to themaxAllocationsPerPassfield. -
pfnBreakCallback
public VmaDefragmentationInfo pfnBreakCallback(@Nullable VmaCheckDefragmentationBreakFunctionI value) Sets the specified value to thepfnBreakCallbackfield. -
pBreakCallbackUserData
Sets the specified value to thepBreakCallbackUserDatafield. -
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 newVmaDefragmentationInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVmaDefragmentationInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVmaDefragmentationInfoinstance allocated withBufferUtils. -
create
Returns a newVmaDefragmentationInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVmaDefragmentationInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVmaDefragmentationInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVmaDefragmentationInfo.Bufferinstance 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 newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVmaDefragmentationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVmaDefragmentationInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-