struct VmaAllocatorCreateInfo {
VmaAllocatorCreateFlags flags;
VkPhysicalDevice physicalDevice;
VkDevice device;
VkDeviceSize preferredLargeHeapBlockSize;
VkAllocationCallbacks const * pAllocationCallbacks;
VmaDeviceMemoryCallbacks const * pDeviceMemoryCallbacks;
VkDeviceSize const * pHeapSizeLimit;
VmaVulkanFunctions const * pVulkanFunctions;
VkInstance instance;
uint32_t vulkanApiVersion;
VkExternalMemoryHandleTypeFlagsKHR const * pTypeExternalMemoryHandleTypes;
}
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEVICE
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | INSTANCE
The struct member offsets. |
| public static final int | PALLOCATIONCALLBACKS
The struct member offsets. |
| public static final int | PDEVICEMEMORYCALLBACKS
The struct member offsets. |
| public static final int | PHEAPSIZELIMIT
The struct member offsets. |
| public static final int | PHYSICALDEVICE
The struct member offsets. |
| public static final int | PREFERREDLARGEHEAPBLOCKSIZE
The struct member offsets. |
| public static final int | PTYPEEXTERNALMEMORYHANDLETYPES
The struct member offsets. |
| public static final int | PVULKANFUNCTIONS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VULKANAPIVERSION
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VmaAllocatorCreateInfo(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VmaAllocatorCreateInfo | |
| public static VmaAllocatorCreateInfo | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaAllocatorCreateInfo | |
| public static VmaAllocatorCreateInfo | |
| protected VmaAllocatorCreateInfo | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VmaAllocatorCreateInfo | |
| public static VmaAllocatorCreateInfo | |
| public static VmaAllocatorCreateInfo | |
| public long | |
| public VmaAllocatorCreateInfo | |
| public int | |
| public VmaAllocatorCreateInfo | |
| public long | |
| public VmaAllocatorCreateInfo | |
| public static VmaAllocatorCreateInfo | |
| public static VmaAllocatorCreateInfo | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VmaAllocatorCreateInfo | |
| public static VmaAllocatorCreateInfo | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static VkAllocationCallbacks | |
| public static void | npAllocationCallbacks(long struct, VkAllocationCallbacks value)
Unsafe version of |
| public static VmaDeviceMemoryCallbacks | |
| public static void | npDeviceMemoryCallbacks(long struct, VmaDeviceMemoryCallbacks value)
Unsafe version of |
| public static LongBuffer | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static IntBuffer | npTypeExternalMemoryHandleTypes(long struct, int capacity)
Unsafe version of |
| public static void | npTypeExternalMemoryHandleTypes(long struct, IntBuffer value)
Unsafe version of |
| public static VmaVulkanFunctions | |
| public static void | |
| public static int | |
| public static void | |
| public VkAllocationCallbacks | |
| public VmaAllocatorCreateInfo | pAllocationCallbacks(VkAllocationCallbacks value)
Sets the address of the specified |
| public VmaDeviceMemoryCallbacks | |
| public VmaAllocatorCreateInfo | pDeviceMemoryCallbacks(VmaDeviceMemoryCallbacks value)
Sets the address of the specified |
| public LongBuffer | Returns: EitherNULL or a pointer to an array of limits on maximum number of bytes that can be allocated out of particular Vulkan memory heap.
If not Any of the elements may be equal to If there is a limit defined for a heap:
Warning Using this feature may not be equivalent to installing a GPU with smaller amount of memory, because graphics driver doesn't necessary fail new
allocations with the number of elements in the returned buffer capacity)
|
| public VmaAllocatorCreateInfo | pHeapSizeLimit(LongBuffer value)
Sets the address of the specified |
| public long | |
| public VmaAllocatorCreateInfo | |
| public long | preferredLargeHeapBlockSize()
preferred size of a single |
| public VmaAllocatorCreateInfo | preferredLargeHeapBlockSize(long value)
Sets the specified value to the |
| public IntBuffer | Returns: Either null or a pointer to an array of external memory handle types for each Vulkan memory type.If not Any of the elements may be equal to 0, which means not to use the number of elements in the returned buffer capacity)
|
| public VmaAllocatorCreateInfo | pTypeExternalMemoryHandleTypes(IntBuffer value)
Sets the address of the specified |
| public VmaVulkanFunctions | |
| public VmaAllocatorCreateInfo | pVulkanFunctions(VmaVulkanFunctions value)
Sets the address of the specified |
| public VmaAllocatorCreateInfo | set(int flags, VkPhysicalDevice physicalDevice, VkDevice device, long preferredLargeHeapBlockSize, VkAllocationCallbacks pAllocationCallbacks, VmaDeviceMemoryCallbacks pDeviceMemoryCallbacks, LongBuffer pHeapSizeLimit, VmaVulkanFunctions pVulkanFunctions, VkInstance instance, int vulkanApiVersion, IntBuffer pTypeExternalMemoryHandleTypes)
Initializes this struct with the specified values. |
| public VmaAllocatorCreateInfo | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void | |
| public int | |
| public VmaAllocatorCreateInfo |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEVICE | back to summary |
|---|---|
| public static final int DEVICE The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| INSTANCE | back to summary |
|---|---|
| public static final int INSTANCE The struct member offsets. | |
| PALLOCATIONCALLBACKS | back to summary |
|---|---|
| public static final int PALLOCATIONCALLBACKS The struct member offsets. | |
| PDEVICEMEMORYCALLBACKS | back to summary |
|---|---|
| public static final int PDEVICEMEMORYCALLBACKS The struct member offsets. | |
| PHEAPSIZELIMIT | back to summary |
|---|---|
| public static final int PHEAPSIZELIMIT The struct member offsets. | |
| PHYSICALDEVICE | back to summary |
|---|---|
| public static final int PHYSICALDEVICE The struct member offsets. | |
| PREFERREDLARGEHEAPBLOCKSIZE | back to summary |
|---|---|
| public static final int PREFERREDLARGEHEAPBLOCKSIZE The struct member offsets. | |
| PTYPEEXTERNALMEMORYHANDLETYPES | back to summary |
|---|---|
| public static final int PTYPEEXTERNALMEMORYHANDLETYPES The struct member offsets. | |
| PVULKANFUNCTIONS | back to summary |
|---|---|
| public static final int PVULKANFUNCTIONS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VULKANAPIVERSION | back to summary |
|---|---|
| public static final int VULKANAPIVERSION The struct member offsets. | |
| VmaAllocatorCreateInfo | back to summary |
|---|---|
| protected VmaAllocatorCreateInfo(long address, ByteBuffer container) | |
| VmaAllocatorCreateInfo | back to summary |
|---|---|
| public VmaAllocatorCreateInfo(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo calloc(MemoryStack stack) Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VmaAllocatorCreateInfo create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo create() Returns a new | |
| create | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo create(long address) Returns a new | |
| createSafe | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo createSafe(long address) Like
| |
| device | back to summary |
|---|---|
| public long device() Vulkan device. It must be valid throughout whole lifetime of created allocator.
| |
| device | back to summary |
|---|---|
| public VmaAllocatorCreateInfo device(VkDevice value) Sets the specified value to the | |
| flags | back to summary |
|---|---|
| public int flags() flags for created allocator. Use
| |
| flags | back to summary |
|---|---|
| public VmaAllocatorCreateInfo flags(int value) Sets the specified value to the | |
| instance | back to summary |
|---|---|
| public long instance() handle to Vulkan instance object.
| |
| instance | back to summary |
|---|---|
| public VmaAllocatorCreateInfo instance(VkInstance value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo malloc(MemoryStack stack) Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VmaAllocatorCreateInfo mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ndevice | back to summary |
|---|---|
| public static long ndevice(long struct) Unsafe version of | |
| ndevice | back to summary |
|---|---|
| public static void ndevice(long struct, VkDevice value) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| ninstance | back to summary |
|---|---|
| public static long ninstance(long struct) Unsafe version of | |
| ninstance | back to summary |
|---|---|
| public static void ninstance(long struct, VkInstance value) Unsafe version of | |
| npAllocationCallbacks | back to summary |
|---|---|
| public static VkAllocationCallbacks npAllocationCallbacks(long struct) Unsafe version of
| |
| npAllocationCallbacks | back to summary |
|---|---|
| public static void npAllocationCallbacks(long struct, VkAllocationCallbacks value) Unsafe version of | |
| npDeviceMemoryCallbacks | back to summary |
|---|---|
| public static VmaDeviceMemoryCallbacks npDeviceMemoryCallbacks(long struct) Unsafe version of
| |
| npDeviceMemoryCallbacks | back to summary |
|---|---|
| public static void npDeviceMemoryCallbacks(long struct, VmaDeviceMemoryCallbacks value) Unsafe version of | |
| npHeapSizeLimit | back to summary |
|---|---|
| public static LongBuffer npHeapSizeLimit(long struct, int capacity) Unsafe version of
| |
| npHeapSizeLimit | back to summary |
|---|---|
| public static void npHeapSizeLimit(long struct, LongBuffer value) Unsafe version of | |
| nphysicalDevice | back to summary |
|---|---|
| public static long nphysicalDevice(long struct) Unsafe version of | |
| nphysicalDevice | back to summary |
|---|---|
| public static void nphysicalDevice(long struct, VkPhysicalDevice value) Unsafe version of | |
| npreferredLargeHeapBlockSize | back to summary |
|---|---|
| public static long npreferredLargeHeapBlockSize(long struct) Unsafe version of | |
| npreferredLargeHeapBlockSize | back to summary |
|---|---|
| public static void npreferredLargeHeapBlockSize(long struct, long value) Unsafe version of | |
| npTypeExternalMemoryHandleTypes | back to summary |
|---|---|
| public static IntBuffer npTypeExternalMemoryHandleTypes(long struct, int capacity) Unsafe version of
| |
| npTypeExternalMemoryHandleTypes | back to summary |
|---|---|
| public static void npTypeExternalMemoryHandleTypes(long struct, IntBuffer value) Unsafe version of | |
| npVulkanFunctions | back to summary |
|---|---|
| public static VmaVulkanFunctions npVulkanFunctions(long struct) Unsafe version of | |
| npVulkanFunctions | back to summary |
|---|---|
| public static void npVulkanFunctions(long struct, VmaVulkanFunctions value) Unsafe version of | |
| nvulkanApiVersion | back to summary |
|---|---|
| public static int nvulkanApiVersion(long struct) Unsafe version of | |
| nvulkanApiVersion | back to summary |
|---|---|
| public static void nvulkanApiVersion(long struct, int value) Unsafe version of | |
| pAllocationCallbacks | back to summary |
|---|---|
| public VkAllocationCallbacks pAllocationCallbacks() custom CPU memory allocation callbacks. Optional, can be null. When specified, will also be used for all CPU-side memory allocations. Optional.
| |
| pAllocationCallbacks | back to summary |
|---|---|
| public VmaAllocatorCreateInfo pAllocationCallbacks(VkAllocationCallbacks value) Sets the address of the specified | |
| pDeviceMemoryCallbacks | back to summary |
|---|---|
| public VmaDeviceMemoryCallbacks pDeviceMemoryCallbacks() informative callbacks for
| |
| pDeviceMemoryCallbacks | back to summary |
|---|---|
| public VmaAllocatorCreateInfo pDeviceMemoryCallbacks(VmaDeviceMemoryCallbacks value) Sets the address of the specified | |
| pHeapSizeLimit | back to summary |
|---|---|
public LongBuffer pHeapSizeLimit(int capacity)
| |
| pHeapSizeLimit | back to summary |
|---|---|
| public VmaAllocatorCreateInfo pHeapSizeLimit(LongBuffer value) Sets the address of the specified | |
| physicalDevice | back to summary |
|---|---|
| public long physicalDevice() Vulkan physical device. It must be valid throughout whole lifetime of created allocator.
| |
| physicalDevice | back to summary |
|---|---|
| public VmaAllocatorCreateInfo physicalDevice(VkPhysicalDevice value) Sets the specified value to the | |
| preferredLargeHeapBlockSize | back to summary |
|---|---|
| public long preferredLargeHeapBlockSize() preferred size of a single
| |
| preferredLargeHeapBlockSize | back to summary |
|---|---|
| public VmaAllocatorCreateInfo preferredLargeHeapBlockSize(long value) Sets the specified value to the | |
| pTypeExternalMemoryHandleTypes | back to summary |
|---|---|
public IntBuffer pTypeExternalMemoryHandleTypes(int capacity)
| |
| pTypeExternalMemoryHandleTypes | back to summary |
|---|---|
| public VmaAllocatorCreateInfo pTypeExternalMemoryHandleTypes(IntBuffer value) Sets the address of the specified | |
| pVulkanFunctions | back to summary |
|---|---|
| public VmaVulkanFunctions pVulkanFunctions() pointers to Vulkan functions
| |
| pVulkanFunctions | back to summary |
|---|---|
| public VmaAllocatorCreateInfo pVulkanFunctions(VmaVulkanFunctions value) Sets the address of the specified | |
| set | back to summary |
|---|---|
| public VmaAllocatorCreateInfo set(int flags, VkPhysicalDevice physicalDevice, VkDevice device, long preferredLargeHeapBlockSize, VkAllocationCallbacks pAllocationCallbacks, VmaDeviceMemoryCallbacks pDeviceMemoryCallbacks, LongBuffer pHeapSizeLimit, VmaVulkanFunctions pVulkanFunctions, VkInstance instance, int vulkanApiVersion, IntBuffer pTypeExternalMemoryHandleTypes) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VmaAllocatorCreateInfo set(VmaAllocatorCreateInfo src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
| vulkanApiVersion | back to summary |
|---|---|
| public int vulkanApiVersion() the highest version of Vulkan that the application is designed to use. (optional) It must be a value in the format as created by macro Leaving it initialized to zero is equivalent to
| |
| vulkanApiVersion | back to summary |
|---|---|
| public VmaAllocatorCreateInfo vulkanApiVersion(int value) Sets the specified value to the | |