Package org.lwjgl.util.vma
Class VmaAllocatorCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VmaAllocatorCreateInfo
extends Struct<VmaAllocatorCreateInfo>
implements NativeResource
struct VmaAllocatorCreateInfo {
VmaAllocatorCreateFlags flags;
VkPhysicalDevice physicalDevice;
VkDevice device;
VkDeviceSize preferredLargeHeapBlockSize;
{@link VkAllocationCallbacks VkAllocationCallbacks} const * pAllocationCallbacks;
{@link VmaDeviceMemoryCallbacks VmaDeviceMemoryCallbacks} const * pDeviceMemoryCallbacks;
VkDeviceSize const * pHeapSizeLimit;
{@link VmaVulkanFunctions VmaVulkanFunctions} const * pVulkanFunctions;
VkInstance instance;
uint32_t vulkanApiVersion;
VkExternalMemoryHandleTypeFlagsKHR const * pTypeExternalMemoryHandleTypes;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVmaAllocatorCreateInfo
(ByteBuffer container) Creates aVmaAllocatorCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaAllocatorCreateInfo
calloc()
Returns a newVmaAllocatorCreateInfo
instance allocated withmemCalloc
.static VmaAllocatorCreateInfo
calloc
(MemoryStack stack) Returns a newVmaAllocatorCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaAllocatorCreateInfo
Deprecated.static VmaAllocatorCreateInfo
callocStack
(MemoryStack stack) Deprecated.static VmaAllocatorCreateInfo
create()
Returns a newVmaAllocatorCreateInfo
instance allocated withBufferUtils
.static VmaAllocatorCreateInfo
create
(long address) Returns a newVmaAllocatorCreateInfo
instance for the specified memory address.static @Nullable VmaAllocatorCreateInfo
createSafe
(long address) long
device()
Sets the specified value to thedevice
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.long
instance()
instance
(VkInstance value) Sets the specified value to theinstance
field.static VmaAllocatorCreateInfo
malloc()
Returns a newVmaAllocatorCreateInfo
instance allocated withmemAlloc
.static VmaAllocatorCreateInfo
malloc
(MemoryStack stack) Returns a newVmaAllocatorCreateInfo
instance allocated on the specifiedMemoryStack
.static VmaAllocatorCreateInfo
Deprecated.static VmaAllocatorCreateInfo
mallocStack
(MemoryStack stack) Deprecated.static long
ndevice
(long struct) Unsafe version ofdevice()
.static void
Unsafe version ofdevice
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static long
ninstance
(long struct) Unsafe version ofinstance()
.static void
ninstance
(long struct, VkInstance value) Unsafe version ofinstance
.static @Nullable VkAllocationCallbacks
npAllocationCallbacks
(long struct) Unsafe version ofpAllocationCallbacks()
.static void
npAllocationCallbacks
(long struct, @Nullable VkAllocationCallbacks value) Unsafe version ofpAllocationCallbacks
.static @Nullable VmaDeviceMemoryCallbacks
npDeviceMemoryCallbacks
(long struct) Unsafe version ofpDeviceMemoryCallbacks()
.static void
npDeviceMemoryCallbacks
(long struct, @Nullable VmaDeviceMemoryCallbacks value) Unsafe version ofpDeviceMemoryCallbacks
.static @Nullable LongBuffer
npHeapSizeLimit
(long struct, int capacity) Unsafe version ofpHeapSizeLimit
.static void
npHeapSizeLimit
(long struct, @Nullable LongBuffer value) Unsafe version ofpHeapSizeLimit
.static long
nphysicalDevice
(long struct) Unsafe version ofphysicalDevice()
.static void
nphysicalDevice
(long struct, VkPhysicalDevice value) Unsafe version ofphysicalDevice
.static long
npreferredLargeHeapBlockSize
(long struct) Unsafe version ofpreferredLargeHeapBlockSize()
.static void
npreferredLargeHeapBlockSize
(long struct, long value) Unsafe version ofpreferredLargeHeapBlockSize
.static @Nullable IntBuffer
npTypeExternalMemoryHandleTypes
(long struct, int capacity) Unsafe version ofpTypeExternalMemoryHandleTypes
.static void
npTypeExternalMemoryHandleTypes
(long struct, @Nullable IntBuffer value) Unsafe version ofpTypeExternalMemoryHandleTypes
.static VmaVulkanFunctions
npVulkanFunctions
(long struct) Unsafe version ofpVulkanFunctions()
.static void
npVulkanFunctions
(long struct, VmaVulkanFunctions value) Unsafe version ofpVulkanFunctions
.static int
nvulkanApiVersion
(long struct) Unsafe version ofvulkanApiVersion()
.static void
nvulkanApiVersion
(long struct, int value) Unsafe version ofvulkanApiVersion
.@Nullable VkAllocationCallbacks
pAllocationCallbacks
(@Nullable VkAllocationCallbacks value) Sets the address of the specifiedVkAllocationCallbacks
to thepAllocationCallbacks
field.@Nullable VmaDeviceMemoryCallbacks
pDeviceMemoryCallbacks
(@Nullable VmaDeviceMemoryCallbacks value) Sets the address of the specifiedVmaDeviceMemoryCallbacks
to thepDeviceMemoryCallbacks
field.@Nullable LongBuffer
pHeapSizeLimit
(int capacity) pHeapSizeLimit
(@Nullable LongBuffer value) Sets the address of the specifiedLongBuffer
to thepHeapSizeLimit
field.long
physicalDevice
(VkPhysicalDevice value) Sets the specified value to thephysicalDevice
field.long
preferredLargeHeapBlockSize
(long value) Sets the specified value to thepreferredLargeHeapBlockSize
field.@Nullable IntBuffer
pTypeExternalMemoryHandleTypes
(int capacity) pTypeExternalMemoryHandleTypes
(@Nullable IntBuffer value) Sets the address of the specifiedIntBuffer
to thepTypeExternalMemoryHandleTypes
field.Sets the address of the specifiedVmaVulkanFunctions
to thepVulkanFunctions
field.set
(int flags, VkPhysicalDevice physicalDevice, VkDevice device, long preferredLargeHeapBlockSize, @Nullable VkAllocationCallbacks pAllocationCallbacks, @Nullable VmaDeviceMemoryCallbacks pDeviceMemoryCallbacks, @Nullable LongBuffer pHeapSizeLimit, VmaVulkanFunctions pVulkanFunctions, VkInstance instance, int vulkanApiVersion, @Nullable IntBuffer pTypeExternalMemoryHandleTypes) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
vulkanApiVersion
(int value) Sets the specified value to thevulkanApiVersion
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLAGS
public static final int FLAGSThe struct member offsets. -
PHYSICALDEVICE
public static final int PHYSICALDEVICEThe struct member offsets. -
DEVICE
public static final int DEVICEThe struct member offsets. -
PREFERREDLARGEHEAPBLOCKSIZE
public static final int PREFERREDLARGEHEAPBLOCKSIZEThe struct member offsets. -
PALLOCATIONCALLBACKS
public static final int PALLOCATIONCALLBACKSThe struct member offsets. -
PDEVICEMEMORYCALLBACKS
public static final int PDEVICEMEMORYCALLBACKSThe struct member offsets. -
PHEAPSIZELIMIT
public static final int PHEAPSIZELIMITThe struct member offsets. -
PVULKANFUNCTIONS
public static final int PVULKANFUNCTIONSThe struct member offsets. -
INSTANCE
public static final int INSTANCEThe struct member offsets. -
VULKANAPIVERSION
public static final int VULKANAPIVERSIONThe struct member offsets. -
PTYPEEXTERNALMEMORYHANDLETYPES
public static final int PTYPEEXTERNALMEMORYHANDLETYPESThe struct member offsets.
-
-
Constructor Details
-
VmaAllocatorCreateInfo
Creates aVmaAllocatorCreateInfo
instance at the current position of the specifiedByteBuffer
container. 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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VmaAllocatorCreateInfo>
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
physicalDevice
public long physicalDevice()- Returns:
- the value of the
physicalDevice
field.
-
device
public long device()- Returns:
- the value of the
device
field.
-
preferredLargeHeapBlockSize
public long preferredLargeHeapBlockSize()- Returns:
- the value of the
preferredLargeHeapBlockSize
field.
-
pAllocationCallbacks
- Returns:
- a
VkAllocationCallbacks
view of the struct pointed to by thepAllocationCallbacks
field.
-
pDeviceMemoryCallbacks
- Returns:
- a
VmaDeviceMemoryCallbacks
view of the struct pointed to by thepDeviceMemoryCallbacks
field.
-
pHeapSizeLimit
- Returns:
- a
LongBuffer
view of the data pointed to by thepHeapSizeLimit
field.
-
pVulkanFunctions
- Returns:
- a
VmaVulkanFunctions
view of the struct pointed to by thepVulkanFunctions
field.
-
instance
public long instance()- Returns:
- the value of the
instance
field.
-
vulkanApiVersion
public int vulkanApiVersion()- Returns:
- the value of the
vulkanApiVersion
field.
-
pTypeExternalMemoryHandleTypes
- Returns:
- a
IntBuffer
view of the data pointed to by thepTypeExternalMemoryHandleTypes
field.
-
flags
Sets the specified value to theflags
field. -
physicalDevice
Sets the specified value to thephysicalDevice
field. -
device
Sets the specified value to thedevice
field. -
preferredLargeHeapBlockSize
Sets the specified value to thepreferredLargeHeapBlockSize
field. -
pAllocationCallbacks
Sets the address of the specifiedVkAllocationCallbacks
to thepAllocationCallbacks
field. -
pDeviceMemoryCallbacks
Sets the address of the specifiedVmaDeviceMemoryCallbacks
to thepDeviceMemoryCallbacks
field. -
pHeapSizeLimit
Sets the address of the specifiedLongBuffer
to thepHeapSizeLimit
field. -
pVulkanFunctions
Sets the address of the specifiedVmaVulkanFunctions
to thepVulkanFunctions
field. -
instance
Sets the specified value to theinstance
field. -
vulkanApiVersion
Sets the specified value to thevulkanApiVersion
field. -
pTypeExternalMemoryHandleTypes
Sets the address of the specifiedIntBuffer
to thepTypeExternalMemoryHandleTypes
field. -
set
public VmaAllocatorCreateInfo set(int flags, VkPhysicalDevice physicalDevice, VkDevice device, long preferredLargeHeapBlockSize, @Nullable VkAllocationCallbacks pAllocationCallbacks, @Nullable VmaDeviceMemoryCallbacks pDeviceMemoryCallbacks, @Nullable LongBuffer pHeapSizeLimit, VmaVulkanFunctions pVulkanFunctions, VkInstance instance, int vulkanApiVersion, @Nullable IntBuffer pTypeExternalMemoryHandleTypes) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVmaAllocatorCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaAllocatorCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaAllocatorCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newVmaAllocatorCreateInfo
instance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
malloc
Returns a newVmaAllocatorCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaAllocatorCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nphysicalDevice
public static long nphysicalDevice(long struct) Unsafe version ofphysicalDevice()
. -
ndevice
public static long ndevice(long struct) Unsafe version ofdevice()
. -
npreferredLargeHeapBlockSize
public static long npreferredLargeHeapBlockSize(long struct) Unsafe version ofpreferredLargeHeapBlockSize()
. -
npAllocationCallbacks
Unsafe version ofpAllocationCallbacks()
. -
npDeviceMemoryCallbacks
Unsafe version ofpDeviceMemoryCallbacks()
. -
npHeapSizeLimit
Unsafe version ofpHeapSizeLimit
. -
npVulkanFunctions
Unsafe version ofpVulkanFunctions()
. -
ninstance
public static long ninstance(long struct) Unsafe version ofinstance()
. -
nvulkanApiVersion
public static int nvulkanApiVersion(long struct) Unsafe version ofvulkanApiVersion()
. -
npTypeExternalMemoryHandleTypes
Unsafe version ofpTypeExternalMemoryHandleTypes
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nphysicalDevice
Unsafe version ofphysicalDevice
. -
ndevice
Unsafe version ofdevice
. -
npreferredLargeHeapBlockSize
public static void npreferredLargeHeapBlockSize(long struct, long value) Unsafe version ofpreferredLargeHeapBlockSize
. -
npAllocationCallbacks
Unsafe version ofpAllocationCallbacks
. -
npDeviceMemoryCallbacks
Unsafe version ofpDeviceMemoryCallbacks
. -
npHeapSizeLimit
Unsafe version ofpHeapSizeLimit
. -
npVulkanFunctions
Unsafe version ofpVulkanFunctions
. -
ninstance
Unsafe version ofinstance
. -
nvulkanApiVersion
public static void nvulkanApiVersion(long struct, int value) Unsafe version ofvulkanApiVersion
. -
npTypeExternalMemoryHandleTypes
Unsafe version ofpTypeExternalMemoryHandleTypes
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-