Package org.lwjgl.util.vma
Class VmaAllocatorInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.vma.VmaAllocatorInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VmaAllocatorInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInformation about existingVmaAllocatorobject.Layout
struct VmaAllocatorInfo { VkInstanceinstance(); VkPhysicalDevicephysicalDevice(); VkDevicedevice(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVmaAllocatorInfo.BufferAn array ofVmaAllocatorInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDEVICE
INSTANCE
PHYSICALDEVICEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VmaAllocatorInfo(java.nio.ByteBuffer container)Creates aVmaAllocatorInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VmaAllocatorInfocalloc()Returns a newVmaAllocatorInfoinstance allocated withmemCalloc.static VmaAllocatorInfo.Buffercalloc(int capacity)Returns a newVmaAllocatorInfo.Bufferinstance allocated withmemCalloc.static VmaAllocatorInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaAllocatorInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaAllocatorInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaAllocatorInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaAllocatorInfocreate()Returns a newVmaAllocatorInfoinstance allocated withBufferUtils.static VmaAllocatorInfo.Buffercreate(int capacity)Returns a newVmaAllocatorInfo.Bufferinstance allocated withBufferUtils.static VmaAllocatorInfocreate(long address)Returns a newVmaAllocatorInfoinstance for the specified memory address.static VmaAllocatorInfo.Buffercreate(long address, int capacity)Create aVmaAllocatorInfo.Bufferinstance at the specified memory.static VmaAllocatorInfocreateSafe(long address)static VmaAllocatorInfo.BuffercreateSafe(long address, int capacity)longdevice()Handle to Vulkan device object.longinstance()Handle to Vulkan instance object.static VmaAllocatorInfomalloc()Returns a newVmaAllocatorInfoinstance allocated withmemAlloc.static VmaAllocatorInfo.Buffermalloc(int capacity)Returns a newVmaAllocatorInfo.Bufferinstance allocated withmemAlloc.static VmaAllocatorInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVmaAllocatorInfo.Bufferinstance allocated on the specifiedMemoryStack.static VmaAllocatorInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVmaAllocatorInfoinstance allocated on the specifiedMemoryStack.static longndevice(long struct)Unsafe version ofdevice().static longninstance(long struct)Unsafe version ofinstance().static longnphysicalDevice(long struct)Unsafe version ofphysicalDevice().longphysicalDevice()Handle to Vulkan physical device object.intsizeof()
-
-
-
Constructor Detail
-
VmaAllocatorInfo
public VmaAllocatorInfo(java.nio.ByteBuffer container)
Creates aVmaAllocatorInfoinstance 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
-
instance
public long instance()
Handle to Vulkan instance object.This is the same value as has been passed through
VmaAllocatorCreateInfo::instance.
-
physicalDevice
public long physicalDevice()
Handle to Vulkan physical device object.This is the same value as has been passed through
VmaAllocatorCreateInfo::physicalDevice.
-
device
public long device()
Handle to Vulkan device object.This is the same value as has been passed through
VmaAllocatorCreateInfo::device.
-
malloc
public static VmaAllocatorInfo malloc()
Returns a newVmaAllocatorInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VmaAllocatorInfo calloc()
Returns a newVmaAllocatorInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VmaAllocatorInfo create()
Returns a newVmaAllocatorInfoinstance allocated withBufferUtils.
-
create
public static VmaAllocatorInfo create(long address)
Returns a newVmaAllocatorInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VmaAllocatorInfo createSafe(long address)
-
malloc
public static VmaAllocatorInfo.Buffer malloc(int capacity)
Returns a newVmaAllocatorInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VmaAllocatorInfo.Buffer calloc(int capacity)
Returns a newVmaAllocatorInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VmaAllocatorInfo.Buffer create(int capacity)
Returns a newVmaAllocatorInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VmaAllocatorInfo.Buffer create(long address, int capacity)
Create aVmaAllocatorInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VmaAllocatorInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VmaAllocatorInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaAllocatorInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VmaAllocatorInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVmaAllocatorInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VmaAllocatorInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaAllocatorInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VmaAllocatorInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVmaAllocatorInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ninstance
public static long ninstance(long struct)
Unsafe version ofinstance().
-
nphysicalDevice
public static long nphysicalDevice(long struct)
Unsafe version ofphysicalDevice().
-
ndevice
public static long ndevice(long struct)
Unsafe version ofdevice().
-
-