To be used with function BeginDefragmentation.
struct VmaDefragmentationInfo {
VmaDefragmentationFlags flags;
VmaPool pool;
VkDeviceSize maxBytesPerPass;
uint32_t maxAllocationsPerPass;
PFN_vmaCheckDefragmentationBreakFunction pfnBreakCallback;
void * pBreakCallbackUserData;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VmaDefragmentationInfo.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MAXALLOCATIONSPERPASS
The struct member offsets. |
| public static final int | MAXBYTESPERPASS
The struct member offsets. |
| public static final int | PBREAKCALLBACKUSERDATA
The struct member offsets. |
| public static final int | PFNBREAKCALLBACK
The struct member offsets. |
| public static final int | POOL
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VmaDefragmentationInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VmaDefragmentationInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaDefragmentationInfo. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo. | |
| public static VmaDefragmentationInfo. | |
| protected VmaDefragmentationInfo | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo. | create(int
the buffer capacity capacity)Returns a new |
| public static VmaDefragmentationInfo. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo. | |
| public int | |
| public VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VmaDefragmentationInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaDefragmentationInfo. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo | |
| public static VmaDefragmentationInfo. | |
| public static VmaDefragmentationInfo. | |
| public int | maxAllocationsPerPass()
maximum number of allocations that can be moved during single pass to a different place. |
| public VmaDefragmentationInfo | |
| public long | maxBytesPerPass()
maximum numbers of bytes that can be copied during single pass, while moving allocations to different places. |
| public VmaDefragmentationInfo | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static VmaCheckDefragmentationBreakFunction | |
| public static void | npfnBreakCallback(long struct, VmaCheckDefragmentationBreakFunctionI value)
Unsafe version of |
| public static long | |
| public static void | |
| public long | pBreakCallbackUserData()
optional data to pass to custom callback for stopping pass of defragmentation. |
| public VmaDefragmentationInfo | |
| public VmaCheckDefragmentationBreakFunction | |
| public VmaDefragmentationInfo | pfnBreakCallback(VmaCheckDefragmentationBreakFunctionI value)
Sets the specified value to the |
| public long | |
| public VmaDefragmentationInfo | |
| public VmaDefragmentationInfo | set(int flags, long pool, long maxBytesPerPass, int maxAllocationsPerPass, VmaCheckDefragmentationBreakFunctionI pfnBreakCallback, long pBreakCallbackUserData)
Initializes this struct with the specified values. |
| public VmaDefragmentationInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| MAXALLOCATIONSPERPASS | back to summary |
|---|---|
| public static final int MAXALLOCATIONSPERPASS The struct member offsets. | |
| MAXBYTESPERPASS | back to summary |
|---|---|
| public static final int MAXBYTESPERPASS The struct member offsets. | |
| PBREAKCALLBACKUSERDATA | back to summary |
|---|---|
| public static final int PBREAKCALLBACKUSERDATA The struct member offsets. | |
| PFNBREAKCALLBACK | back to summary |
|---|---|
| public static final int PFNBREAKCALLBACK The struct member offsets. | |
| POOL | back to summary |
|---|---|
| public static final int POOL The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VmaDefragmentationInfo | back to summary |
|---|---|
| protected VmaDefragmentationInfo(long address, ByteBuffer container) | |
| VmaDefragmentationInfo | back to summary |
|---|---|
| public VmaDefragmentationInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VmaDefragmentationInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VmaDefragmentationInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VmaDefragmentationInfo create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Returns a new
| |
| create | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VmaDefragmentationInfo createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Like
| |
| flags | back to summary |
|---|---|
| public int flags() use combination of
| |
| flags | back to summary |
|---|---|
| public VmaDefragmentationInfo flags(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaDefragmentationInfo. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| maxAllocationsPerPass | back to summary |
|---|---|
| public int maxAllocationsPerPass() maximum number of allocations that can be moved during single pass to a different place. 0 means no limit.
| |
| maxAllocationsPerPass | back to summary |
|---|---|
| public VmaDefragmentationInfo maxAllocationsPerPass(int value) Sets the specified value to the | |
| maxBytesPerPass | back to summary |
|---|---|
| public long maxBytesPerPass() maximum numbers of bytes that can be copied during single pass, while moving allocations to different places. 0 means no limit.
| |
| maxBytesPerPass | back to summary |
|---|---|
| public VmaDefragmentationInfo maxBytesPerPass(long value) Sets the specified value to the | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| nmaxAllocationsPerPass | back to summary |
|---|---|
| public static int nmaxAllocationsPerPass(long struct) Unsafe version of | |
| nmaxAllocationsPerPass | back to summary |
|---|---|
| public static void nmaxAllocationsPerPass(long struct, int value) Unsafe version of | |
| nmaxBytesPerPass | back to summary |
|---|---|
| public static long nmaxBytesPerPass(long struct) Unsafe version of | |
| nmaxBytesPerPass | back to summary |
|---|---|
| public static void nmaxBytesPerPass(long struct, long value) Unsafe version of | |
| npBreakCallbackUserData | back to summary |
|---|---|
| public static long npBreakCallbackUserData(long struct) Unsafe version of | |
| npBreakCallbackUserData | back to summary |
|---|---|
| public static void npBreakCallbackUserData(long struct, long value) Unsafe version of | |
| npfnBreakCallback | back to summary |
|---|---|
| public static VmaCheckDefragmentationBreakFunction npfnBreakCallback(long struct) Unsafe version of
| |
| npfnBreakCallback | back to summary |
|---|---|
| public static void npfnBreakCallback(long struct, VmaCheckDefragmentationBreakFunctionI value) Unsafe version of | |
| npool | back to summary |
|---|---|
| public static long npool(long struct) Unsafe version of | |
| npool | back to summary |
|---|---|
| public static void npool(long struct, long value) Unsafe version of | |
| pBreakCallbackUserData | back to summary |
|---|---|
| public long pBreakCallbackUserData() optional data to pass to custom callback for stopping pass of defragmentation.
| |
| pBreakCallbackUserData | back to summary |
|---|---|
| public VmaDefragmentationInfo pBreakCallbackUserData(long value) Sets the specified value to the | |
| pfnBreakCallback | back to summary |
|---|---|
| public VmaCheckDefragmentationBreakFunction pfnBreakCallback() Optional custom callback for stopping Have to return true for breaking current defragmentation pass.
| |
| pfnBreakCallback | back to summary |
|---|---|
| public VmaDefragmentationInfo pfnBreakCallback(VmaCheckDefragmentationBreakFunctionI value) Sets the specified value to the | |
| pool | back to summary |
|---|---|
| public long pool() custom pool to be defragmented. If null then default pools will undergo defragmentation process.
| |
| pool | back to summary |
|---|---|
| public VmaDefragmentationInfo pool(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VmaDefragmentationInfo set(int flags, long pool, long maxBytesPerPass, int maxAllocationsPerPass, VmaCheckDefragmentationBreakFunctionI pfnBreakCallback, long pBreakCallbackUserData) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VmaDefragmentationInfo set(VmaDefragmentationInfo src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VmaDefragmentationInfo structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VmaDefragmentationInfo |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VmaDefragmentationInfo ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VmaDefragmentationInfo. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VmaDefragmentationInfo getElementFactory() Implements abstract org.
| |
| maxAllocationsPerPass | back to summary |
|---|---|
public int maxAllocationsPerPass()
| |
| maxAllocationsPerPass | back to summary |
|---|---|
| public VmaDefragmentationInfo. Sets the specified value to the | |
| maxBytesPerPass | back to summary |
|---|---|
public long maxBytesPerPass()
| |
| maxBytesPerPass | back to summary |
|---|---|
| public VmaDefragmentationInfo. Sets the specified value to the | |
| pBreakCallbackUserData | back to summary |
|---|---|
public long pBreakCallbackUserData()
| |
| pBreakCallbackUserData | back to summary |
|---|---|
| public VmaDefragmentationInfo. Sets the specified value to the | |
| pfnBreakCallback | back to summary |
|---|---|
public VmaCheckDefragmentationBreakFunction pfnBreakCallback()
| |
| pfnBreakCallback | back to summary |
|---|---|
| public VmaDefragmentationInfo. Sets the specified value to the | |
| pool | back to summary |
|---|---|
public long pool()
| |
| pool | back to summary |
|---|---|
| public VmaDefragmentationInfo. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VmaDefragmentationInfo. Implements abstract org.
| |