Package org.lwjgl.util.vma
Class VmaVirtualAllocationInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaVirtualAllocationInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaVirtualAllocationInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceParameters of an existing virtual allocation, returned byGetVirtualAllocationInfo.Layout
struct VmaVirtualAllocationInfo { VkDeviceSizeoffset(); VkDeviceSizesize(); void *pUserData(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaVirtualAllocationInfo.BufferAn array ofVmaVirtualAllocationInfostructs.
-
Constructor Summary
Constructors Constructor Description VmaVirtualAllocationInfo(java.nio.ByteBuffer container)Creates aVmaVirtualAllocationInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VmaVirtualAllocationInfocalloc()Returns a newVmaVirtualAllocationInfoinstance allocated withmemCalloc.static VmaVirtualAllocationInfo.Buffercalloc(int capacity)Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated withmemCalloc.static VmaVirtualAllocationInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaVirtualAllocationInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualAllocationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaVirtualAllocationInfocreate()Returns a newVmaVirtualAllocationInfoinstance allocated withBufferUtils.static VmaVirtualAllocationInfo.Buffercreate(int capacity)Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated withBufferUtils.static VmaVirtualAllocationInfocreate(long address)Returns a newVmaVirtualAllocationInfoinstance for the specified memory address.static VmaVirtualAllocationInfo.Buffercreate(long address, int capacity)Create aVmaVirtualAllocationInfo.Bufferinstance at the specified memory.static VmaVirtualAllocationInfocreateSafe(long address)static VmaVirtualAllocationInfo.BuffercreateSafe(long address, int capacity)static VmaVirtualAllocationInfomalloc()Returns a newVmaVirtualAllocationInfoinstance allocated withmemAlloc.static VmaVirtualAllocationInfo.Buffermalloc(int capacity)Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated withmemAlloc.static VmaVirtualAllocationInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaVirtualAllocationInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaVirtualAllocationInfoinstance allocated on the specifiedMemoryStack.static longnoffset(long struct)Unsafe version ofoffset().static longnpUserData(long struct)Unsafe version ofpUserData().static longnsize(long struct)Unsafe version ofsize().longoffset()offset of the allocation.longpUserData()custom pointer associated with the allocation.longsize()size of the allocation.intsizeof()
-
-
-
Constructor Detail
-
VmaVirtualAllocationInfo
public VmaVirtualAllocationInfo(java.nio.ByteBuffer container)
Creates aVmaVirtualAllocationInfoinstance 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
-
offset
public long offset()
offset of the allocation.Offset at which the allocation was made.
-
size
public long size()
size of the allocation.Same value as passed in
VmaVirtualAllocationCreateInfo::size.
-
pUserData
public long pUserData()
custom pointer associated with the allocation.Same value as passed in
VmaVirtualAllocationCreateInfo::pUserDataor toSetVirtualAllocationUserData.
-
malloc
public static VmaVirtualAllocationInfo malloc()
Returns a newVmaVirtualAllocationInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaVirtualAllocationInfo calloc()
Returns a newVmaVirtualAllocationInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaVirtualAllocationInfo create()
Returns a newVmaVirtualAllocationInfoinstance allocated withBufferUtils.
-
create
public static VmaVirtualAllocationInfo create(long address)
Returns a newVmaVirtualAllocationInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VmaVirtualAllocationInfo createSafe(long address)
-
malloc
public static VmaVirtualAllocationInfo.Buffer malloc(int capacity)
Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaVirtualAllocationInfo.Buffer calloc(int capacity)
Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaVirtualAllocationInfo.Buffer create(int capacity)
Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaVirtualAllocationInfo.Buffer create(long address, int capacity)
Create aVmaVirtualAllocationInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaVirtualAllocationInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VmaVirtualAllocationInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualAllocationInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaVirtualAllocationInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualAllocationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaVirtualAllocationInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaVirtualAllocationInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaVirtualAllocationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
noffset
public static long noffset(long struct)
Unsafe version ofoffset().
-
nsize
public static long nsize(long struct)
Unsafe version ofsize().
-
npUserData
public static long npUserData(long struct)
Unsafe version ofpUserData().
-
-