Package org.lwjgl.util.vma
Class VmaDefragmentationPassMoveInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaDefragmentationPassMoveInfo
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VmaDefragmentationPassMoveInfo extends org.lwjgl.system.StructLayout
struct VmaDefragmentationPassMoveInfo { VmaAllocation allocation; VkDeviceMemory memory; VkDeviceSize offset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaDefragmentationPassMoveInfo.BufferAn array ofVmaDefragmentationPassMoveInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOCATION
MEMORY
OFFSETThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VmaDefragmentationPassMoveInfo(java.nio.ByteBuffer container)Creates aVmaDefragmentationPassMoveInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longallocation()static VmaDefragmentationPassMoveInfocreate(long address)Returns a newVmaDefragmentationPassMoveInfoinstance for the specified memory address.static VmaDefragmentationPassMoveInfo.Buffercreate(long address, int capacity)Create aVmaDefragmentationPassMoveInfo.Bufferinstance at the specified memory.static VmaDefragmentationPassMoveInfocreateSafe(long address)static VmaDefragmentationPassMoveInfo.BuffercreateSafe(long address, int capacity)longmemory()static longnallocation(long struct)Unsafe version ofallocation().static longnmemory(long struct)Unsafe version ofmemory().static longnoffset(long struct)Unsafe version ofoffset().longoffset()intsizeof()
-
-
-
Constructor Detail
-
VmaDefragmentationPassMoveInfo
public VmaDefragmentationPassMoveInfo(java.nio.ByteBuffer container)
Creates aVmaDefragmentationPassMoveInfoinstance 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
-
allocation
public long allocation()
- Returns:
- the value of the
allocationfield.
-
memory
public long memory()
- Returns:
- the value of the
memoryfield.
-
offset
public long offset()
- Returns:
- the value of the
offsetfield.
-
create
public static VmaDefragmentationPassMoveInfo create(long address)
Returns a newVmaDefragmentationPassMoveInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VmaDefragmentationPassMoveInfo createSafe(long address)
-
create
public static VmaDefragmentationPassMoveInfo.Buffer create(long address, int capacity)
Create aVmaDefragmentationPassMoveInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaDefragmentationPassMoveInfo.Buffer createSafe(long address, int capacity)
-
nallocation
public static long nallocation(long struct)
Unsafe version ofallocation().
-
nmemory
public static long nmemory(long struct)
Unsafe version ofmemory().
-
noffset
public static long noffset(long struct)
Unsafe version ofoffset().
-
-