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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aVmaAllocatorCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaAllocatorCreateInfocalloc()Returns a newVmaAllocatorCreateInfoinstance allocated withmemCalloc.static VmaAllocatorCreateInfocalloc(MemoryStack stack) Returns a newVmaAllocatorCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VmaAllocatorCreateInfoDeprecated.static VmaAllocatorCreateInfocallocStack(MemoryStack stack) Deprecated.static VmaAllocatorCreateInfocreate()Returns a newVmaAllocatorCreateInfoinstance allocated withBufferUtils.static VmaAllocatorCreateInfocreate(long address) Returns a newVmaAllocatorCreateInfoinstance for the specified memory address.static @Nullable VmaAllocatorCreateInfocreateSafe(long address) longdevice()Sets the specified value to thedevicefield.intflags()flags(int value) Sets the specified value to theflagsfield.longinstance()instance(VkInstance value) Sets the specified value to theinstancefield.static VmaAllocatorCreateInfomalloc()Returns a newVmaAllocatorCreateInfoinstance allocated withmemAlloc.static VmaAllocatorCreateInfomalloc(MemoryStack stack) Returns a newVmaAllocatorCreateInfoinstance allocated on the specifiedMemoryStack.static VmaAllocatorCreateInfoDeprecated.static VmaAllocatorCreateInfomallocStack(MemoryStack stack) Deprecated.static longndevice(long struct) Unsafe version ofdevice().static voidUnsafe version ofdevice.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longninstance(long struct) Unsafe version ofinstance().static voidninstance(long struct, VkInstance value) Unsafe version ofinstance.static @Nullable VkAllocationCallbacksnpAllocationCallbacks(long struct) Unsafe version ofpAllocationCallbacks().static voidnpAllocationCallbacks(long struct, @Nullable VkAllocationCallbacks value) Unsafe version ofpAllocationCallbacks.static @Nullable VmaDeviceMemoryCallbacksnpDeviceMemoryCallbacks(long struct) Unsafe version ofpDeviceMemoryCallbacks().static voidnpDeviceMemoryCallbacks(long struct, @Nullable VmaDeviceMemoryCallbacks value) Unsafe version ofpDeviceMemoryCallbacks.static @Nullable LongBuffernpHeapSizeLimit(long struct, int capacity) Unsafe version ofpHeapSizeLimit.static voidnpHeapSizeLimit(long struct, @Nullable LongBuffer value) Unsafe version ofpHeapSizeLimit.static longnphysicalDevice(long struct) Unsafe version ofphysicalDevice().static voidnphysicalDevice(long struct, VkPhysicalDevice value) Unsafe version ofphysicalDevice.static longnpreferredLargeHeapBlockSize(long struct) Unsafe version ofpreferredLargeHeapBlockSize().static voidnpreferredLargeHeapBlockSize(long struct, long value) Unsafe version ofpreferredLargeHeapBlockSize.static @Nullable IntBuffernpTypeExternalMemoryHandleTypes(long struct, int capacity) Unsafe version ofpTypeExternalMemoryHandleTypes.static voidnpTypeExternalMemoryHandleTypes(long struct, @Nullable IntBuffer value) Unsafe version ofpTypeExternalMemoryHandleTypes.static VmaVulkanFunctionsnpVulkanFunctions(long struct) Unsafe version ofpVulkanFunctions().static voidnpVulkanFunctions(long struct, VmaVulkanFunctions value) Unsafe version ofpVulkanFunctions.static intnvulkanApiVersion(long struct) Unsafe version ofvulkanApiVersion().static voidnvulkanApiVersion(long struct, int value) Unsafe version ofvulkanApiVersion.@Nullable VkAllocationCallbackspAllocationCallbacks(@Nullable VkAllocationCallbacks value) Sets the address of the specifiedVkAllocationCallbacksto thepAllocationCallbacksfield.@Nullable VmaDeviceMemoryCallbackspDeviceMemoryCallbacks(@Nullable VmaDeviceMemoryCallbacks value) Sets the address of the specifiedVmaDeviceMemoryCallbacksto thepDeviceMemoryCallbacksfield.@Nullable LongBufferpHeapSizeLimit(int capacity) pHeapSizeLimit(@Nullable LongBuffer value) Sets the address of the specifiedLongBufferto thepHeapSizeLimitfield.longphysicalDevice(VkPhysicalDevice value) Sets the specified value to thephysicalDevicefield.longpreferredLargeHeapBlockSize(long value) Sets the specified value to thepreferredLargeHeapBlockSizefield.@Nullable IntBufferpTypeExternalMemoryHandleTypes(int capacity) pTypeExternalMemoryHandleTypes(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepTypeExternalMemoryHandleTypesfield.Sets the address of the specifiedVmaVulkanFunctionsto thepVulkanFunctionsfield.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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.intvulkanApiVersion(int value) Sets the specified value to thevulkanApiVersionfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVmaAllocatorCreateInfoinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VmaAllocatorCreateInfo>
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
physicalDevice
public long physicalDevice()- Returns:
- the value of the
physicalDevicefield.
-
device
public long device()- Returns:
- the value of the
devicefield.
-
preferredLargeHeapBlockSize
public long preferredLargeHeapBlockSize()- Returns:
- the value of the
preferredLargeHeapBlockSizefield.
-
pAllocationCallbacks
- Returns:
- a
VkAllocationCallbacksview of the struct pointed to by thepAllocationCallbacksfield.
-
pDeviceMemoryCallbacks
- Returns:
- a
VmaDeviceMemoryCallbacksview of the struct pointed to by thepDeviceMemoryCallbacksfield.
-
pHeapSizeLimit
- Returns:
- a
LongBufferview of the data pointed to by thepHeapSizeLimitfield.
-
pVulkanFunctions
- Returns:
- a
VmaVulkanFunctionsview of the struct pointed to by thepVulkanFunctionsfield.
-
instance
public long instance()- Returns:
- the value of the
instancefield.
-
vulkanApiVersion
public int vulkanApiVersion()- Returns:
- the value of the
vulkanApiVersionfield.
-
pTypeExternalMemoryHandleTypes
- Returns:
- a
IntBufferview of the data pointed to by thepTypeExternalMemoryHandleTypesfield.
-
flags
Sets the specified value to theflagsfield. -
physicalDevice
Sets the specified value to thephysicalDevicefield. -
device
Sets the specified value to thedevicefield. -
preferredLargeHeapBlockSize
Sets the specified value to thepreferredLargeHeapBlockSizefield. -
pAllocationCallbacks
Sets the address of the specifiedVkAllocationCallbacksto thepAllocationCallbacksfield. -
pDeviceMemoryCallbacks
Sets the address of the specifiedVmaDeviceMemoryCallbacksto thepDeviceMemoryCallbacksfield. -
pHeapSizeLimit
Sets the address of the specifiedLongBufferto thepHeapSizeLimitfield. -
pVulkanFunctions
Sets the address of the specifiedVmaVulkanFunctionsto thepVulkanFunctionsfield. -
instance
Sets the specified value to theinstancefield. -
vulkanApiVersion
Sets the specified value to thevulkanApiVersionfield. -
pTypeExternalMemoryHandleTypes
Sets the address of the specifiedIntBufferto thepTypeExternalMemoryHandleTypesfield. -
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 newVmaAllocatorCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVmaAllocatorCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVmaAllocatorCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVmaAllocatorCreateInfoinstance 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 newVmaAllocatorCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVmaAllocatorCreateInfoinstance allocated on the specifiedMemoryStackand 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
-