Package org.lwjgl.util.vma
Class VmaDefragmentationPassInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaDefragmentationPassInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaDefragmentationPassInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters for incremental defragmentation steps.To be used with function
BeginDefragmentationPass.Layout
struct VmaDefragmentationPassInfo { uint32_t moveCount;VmaDefragmentationPassMoveInfo* pMoves; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaDefragmentationPassInfo.BufferAn array ofVmaDefragmentationPassInfostructs.
-
Constructor Summary
Constructors Constructor Description VmaDefragmentationPassInfo(java.nio.ByteBuffer container)Creates aVmaDefragmentationPassInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VmaDefragmentationPassInfocalloc()Returns a newVmaDefragmentationPassInfoinstance allocated withmemCalloc.static VmaDefragmentationPassInfo.Buffercalloc(int capacity)Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated withmemCalloc.static VmaDefragmentationPassInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationPassInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationPassInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaDefragmentationPassInfocreate()Returns a newVmaDefragmentationPassInfoinstance allocated withBufferUtils.static VmaDefragmentationPassInfo.Buffercreate(int capacity)Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated withBufferUtils.static VmaDefragmentationPassInfocreate(long address)Returns a newVmaDefragmentationPassInfoinstance for the specified memory address.static VmaDefragmentationPassInfo.Buffercreate(long address, int capacity)Create aVmaDefragmentationPassInfo.Bufferinstance at the specified memory.static VmaDefragmentationPassInfocreateSafe(long address)static VmaDefragmentationPassInfo.BuffercreateSafe(long address, int capacity)static VmaDefragmentationPassInfomalloc()Returns a newVmaDefragmentationPassInfoinstance allocated withmemAlloc.static VmaDefragmentationPassInfo.Buffermalloc(int capacity)Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated withmemAlloc.static VmaDefragmentationPassInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaDefragmentationPassInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaDefragmentationPassInfoinstance allocated on the specifiedMemoryStack.intmoveCount()static intnmoveCount(long struct)Unsafe version ofmoveCount().static VmaDefragmentationPassMoveInfo.BuffernpMoves(long struct)Unsafe version ofpMoves().VmaDefragmentationPassMoveInfo.BufferpMoves()intsizeof()
-
-
-
Constructor Detail
-
VmaDefragmentationPassInfo
public VmaDefragmentationPassInfo(java.nio.ByteBuffer container)
Creates aVmaDefragmentationPassInfoinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
moveCount
public int moveCount()
- Returns:
- the value of the
moveCountfield.
-
pMoves
public VmaDefragmentationPassMoveInfo.Buffer pMoves()
- Returns:
- a
VmaDefragmentationPassMoveInfo.Bufferview of the struct array pointed to by thepMovesfield.
-
malloc
public static VmaDefragmentationPassInfo malloc()
Returns a newVmaDefragmentationPassInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaDefragmentationPassInfo calloc()
Returns a newVmaDefragmentationPassInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaDefragmentationPassInfo create()
Returns a newVmaDefragmentationPassInfoinstance allocated withBufferUtils.
-
create
public static VmaDefragmentationPassInfo create(long address)
Returns a newVmaDefragmentationPassInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VmaDefragmentationPassInfo createSafe(long address)
-
malloc
public static VmaDefragmentationPassInfo.Buffer malloc(int capacity)
Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaDefragmentationPassInfo.Buffer calloc(int capacity)
Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaDefragmentationPassInfo.Buffer create(int capacity)
Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaDefragmentationPassInfo.Buffer create(long address, int capacity)
Create aVmaDefragmentationPassInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaDefragmentationPassInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VmaDefragmentationPassInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationPassInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaDefragmentationPassInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationPassInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaDefragmentationPassInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaDefragmentationPassInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaDefragmentationPassInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmoveCount
public static int nmoveCount(long struct)
Unsafe version ofmoveCount().
-
npMoves
public static VmaDefragmentationPassMoveInfo.Buffer npMoves(long struct)
Unsafe version ofpMoves().
-
-