Package org.lwjgl.util.vma
Class VmaVulkanFunctions
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Pointers to some Vulkan functions - a subset used by the library.
Used in VmaAllocatorCreateInfo
::pVulkanFunctions
.
Layout
struct VmaVulkanFunctions {
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
PFN_vkGetDeviceProcAddr vkGetDeviceProcAddr;
PFN_vkGetPhysicalDeviceProperties vkGetPhysicalDeviceProperties;
PFN_vkGetPhysicalDeviceMemoryProperties vkGetPhysicalDeviceMemoryProperties;
PFN_vkAllocateMemory vkAllocateMemory;
PFN_vkFreeMemory vkFreeMemory;
PFN_vkMapMemory vkMapMemory;
PFN_vkUnmapMemory vkUnmapMemory;
PFN_vkFlushMappedMemoryRanges vkFlushMappedMemoryRanges;
PFN_vkInvalidateMappedMemoryRanges vkInvalidateMappedMemoryRanges;
PFN_vkBindBufferMemory vkBindBufferMemory;
PFN_vkBindImageMemory vkBindImageMemory;
PFN_vkGetBufferMemoryRequirements vkGetBufferMemoryRequirements;
PFN_vkGetImageMemoryRequirements vkGetImageMemoryRequirements;
PFN_vkCreateBuffer vkCreateBuffer;
PFN_vkDestroyBuffer vkDestroyBuffer;
PFN_vkCreateImage vkCreateImage;
PFN_vkDestroyImage vkDestroyImage;
PFN_vkCmdCopyBuffer vkCmdCopyBuffer;
PFN_vkGetBufferMemoryRequirements2KHR vkGetBufferMemoryRequirements2KHR()
;
PFN_vkGetImageMemoryRequirements2KHR vkGetImageMemoryRequirements2KHR()
;
PFN_vkBindBufferMemory2KHR vkBindBufferMemory2KHR()
;
PFN_vkBindImageMemory2KHR vkBindImageMemory2KHR()
;
PFN_vkGetPhysicalDeviceMemoryProperties2KHR vkGetPhysicalDeviceMemoryProperties2KHR;
PFN_vkGetDeviceBufferMemoryRequirements vkGetDeviceBufferMemoryRequirements;
PFN_vkGetDeviceImageMemoryRequirements vkGetDeviceImageMemoryRequirements;
}
-
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
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct size 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 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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVmaVulkanFunctions
(ByteBuffer container) Creates aVmaVulkanFunctions
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VmaVulkanFunctions
calloc()
Returns a newVmaVulkanFunctions
instance allocated withmemCalloc
.static VmaVulkanFunctions
calloc
(MemoryStack stack) Returns a newVmaVulkanFunctions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VmaVulkanFunctions
Deprecated.static VmaVulkanFunctions
callocStack
(MemoryStack stack) Deprecated.static VmaVulkanFunctions
create()
Returns a newVmaVulkanFunctions
instance allocated withBufferUtils
.static VmaVulkanFunctions
create
(long address) Returns a newVmaVulkanFunctions
instance for the specified memory address.static VmaVulkanFunctions
createSafe
(long address) static VmaVulkanFunctions
malloc()
Returns a newVmaVulkanFunctions
instance allocated withmemAlloc
.static VmaVulkanFunctions
malloc
(MemoryStack stack) Returns a newVmaVulkanFunctions
instance allocated on the specifiedMemoryStack
.static VmaVulkanFunctions
Deprecated.static VmaVulkanFunctions
mallocStack
(MemoryStack stack) Deprecated.static long
nvkAllocateMemory
(long struct) Unsafe version ofvkAllocateMemory()
.static void
nvkAllocateMemory
(long struct, long value) Unsafe version ofvkAllocateMemory
.static long
nvkBindBufferMemory
(long struct) Unsafe version ofvkBindBufferMemory()
.static void
nvkBindBufferMemory
(long struct, long value) Unsafe version ofvkBindBufferMemory
.static long
nvkBindBufferMemory2KHR
(long struct) Unsafe version ofvkBindBufferMemory2KHR()
.static void
nvkBindBufferMemory2KHR
(long struct, long value) Unsafe version ofvkBindBufferMemory2KHR
.static long
nvkBindImageMemory
(long struct) Unsafe version ofvkBindImageMemory()
.static void
nvkBindImageMemory
(long struct, long value) Unsafe version ofvkBindImageMemory
.static long
nvkBindImageMemory2KHR
(long struct) Unsafe version ofvkBindImageMemory2KHR()
.static void
nvkBindImageMemory2KHR
(long struct, long value) Unsafe version ofvkBindImageMemory2KHR
.static long
nvkCmdCopyBuffer
(long struct) Unsafe version ofvkCmdCopyBuffer()
.static void
nvkCmdCopyBuffer
(long struct, long value) Unsafe version ofvkCmdCopyBuffer
.static long
nvkCreateBuffer
(long struct) Unsafe version ofvkCreateBuffer()
.static void
nvkCreateBuffer
(long struct, long value) Unsafe version ofvkCreateBuffer
.static long
nvkCreateImage
(long struct) Unsafe version ofvkCreateImage()
.static void
nvkCreateImage
(long struct, long value) Unsafe version ofvkCreateImage
.static long
nvkDestroyBuffer
(long struct) Unsafe version ofvkDestroyBuffer()
.static void
nvkDestroyBuffer
(long struct, long value) Unsafe version ofvkDestroyBuffer
.static long
nvkDestroyImage
(long struct) Unsafe version ofvkDestroyImage()
.static void
nvkDestroyImage
(long struct, long value) Unsafe version ofvkDestroyImage
.static long
nvkFlushMappedMemoryRanges
(long struct) Unsafe version ofvkFlushMappedMemoryRanges()
.static void
nvkFlushMappedMemoryRanges
(long struct, long value) Unsafe version ofvkFlushMappedMemoryRanges
.static long
nvkFreeMemory
(long struct) Unsafe version ofvkFreeMemory()
.static void
nvkFreeMemory
(long struct, long value) Unsafe version ofvkFreeMemory
.static long
nvkGetBufferMemoryRequirements
(long struct) Unsafe version ofvkGetBufferMemoryRequirements()
.static void
nvkGetBufferMemoryRequirements
(long struct, long value) Unsafe version ofvkGetBufferMemoryRequirements
.static long
nvkGetBufferMemoryRequirements2KHR
(long struct) Unsafe version ofvkGetBufferMemoryRequirements2KHR()
.static void
nvkGetBufferMemoryRequirements2KHR
(long struct, long value) Unsafe version ofvkGetBufferMemoryRequirements2KHR
.static long
nvkGetDeviceBufferMemoryRequirements
(long struct) Unsafe version ofvkGetDeviceBufferMemoryRequirements()
.static void
nvkGetDeviceBufferMemoryRequirements
(long struct, long value) Unsafe version ofvkGetDeviceBufferMemoryRequirements
.static long
nvkGetDeviceImageMemoryRequirements
(long struct) Unsafe version ofvkGetDeviceImageMemoryRequirements()
.static void
nvkGetDeviceImageMemoryRequirements
(long struct, long value) Unsafe version ofvkGetDeviceImageMemoryRequirements
.static long
nvkGetDeviceProcAddr
(long struct) Unsafe version ofvkGetDeviceProcAddr()
.static void
nvkGetDeviceProcAddr
(long struct, long value) Unsafe version ofvkGetDeviceProcAddr
.static long
nvkGetImageMemoryRequirements
(long struct) Unsafe version ofvkGetImageMemoryRequirements()
.static void
nvkGetImageMemoryRequirements
(long struct, long value) Unsafe version ofvkGetImageMemoryRequirements
.static long
nvkGetImageMemoryRequirements2KHR
(long struct) Unsafe version ofvkGetImageMemoryRequirements2KHR()
.static void
nvkGetImageMemoryRequirements2KHR
(long struct, long value) Unsafe version ofvkGetImageMemoryRequirements2KHR
.static long
nvkGetInstanceProcAddr
(long struct) Unsafe version ofvkGetInstanceProcAddr()
.static void
nvkGetInstanceProcAddr
(long struct, long value) Unsafe version ofvkGetInstanceProcAddr
.static long
nvkGetPhysicalDeviceMemoryProperties
(long struct) Unsafe version ofvkGetPhysicalDeviceMemoryProperties()
.static void
nvkGetPhysicalDeviceMemoryProperties
(long struct, long value) Unsafe version ofvkGetPhysicalDeviceMemoryProperties
.static long
nvkGetPhysicalDeviceMemoryProperties2KHR
(long struct) Unsafe version ofvkGetPhysicalDeviceMemoryProperties2KHR()
.static void
nvkGetPhysicalDeviceMemoryProperties2KHR
(long struct, long value) Unsafe version ofvkGetPhysicalDeviceMemoryProperties2KHR
.static long
nvkGetPhysicalDeviceProperties
(long struct) Unsafe version ofvkGetPhysicalDeviceProperties()
.static void
nvkGetPhysicalDeviceProperties
(long struct, long value) Unsafe version ofvkGetPhysicalDeviceProperties
.static long
nvkInvalidateMappedMemoryRanges
(long struct) Unsafe version ofvkInvalidateMappedMemoryRanges()
.static void
nvkInvalidateMappedMemoryRanges
(long struct, long value) Unsafe version ofvkInvalidateMappedMemoryRanges
.static long
nvkMapMemory
(long struct) Unsafe version ofvkMapMemory()
.static void
nvkMapMemory
(long struct, long value) Unsafe version ofvkMapMemory
.static long
nvkUnmapMemory
(long struct) Unsafe version ofvkUnmapMemory()
.static void
nvkUnmapMemory
(long struct, long value) Unsafe version ofvkUnmapMemory
.set
(long vkGetInstanceProcAddr, long vkGetDeviceProcAddr, long vkGetPhysicalDeviceProperties, long vkGetPhysicalDeviceMemoryProperties, long vkAllocateMemory, long vkFreeMemory, long vkMapMemory, long vkUnmapMemory, long vkFlushMappedMemoryRanges, long vkInvalidateMappedMemoryRanges, long vkBindBufferMemory, long vkBindImageMemory, long vkGetBufferMemoryRequirements, long vkGetImageMemoryRequirements, long vkCreateBuffer, long vkDestroyBuffer, long vkCreateImage, long vkDestroyImage, long vkCmdCopyBuffer, long vkGetBufferMemoryRequirements2KHR, long vkGetImageMemoryRequirements2KHR, long vkBindBufferMemory2KHR, long vkBindImageMemory2KHR, long vkGetPhysicalDeviceMemoryProperties2KHR, long vkGetDeviceBufferMemoryRequirements, long vkGetDeviceImageMemoryRequirements) Initializes this struct with the specified values.set
(VmaVulkanFunctions src) Copies the specified struct data to this struct.set
(VkInstance instance, VkDevice device) Helper method that populates this struct with required Vulkan function pointers from the specified Vulkan instance and device.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.long
vkAllocateMemory
(long value) Sets the specified value to thevkAllocateMemory
field.long
vkBindBufferMemory
(long value) Sets the specified value to thevkBindBufferMemory
field.long
vkBindBufferMemory2
on Vulkan ≥ 1.1,vkBindBufferMemory2KHR
when usingVK_KHR_bind_memory2
extension.vkBindBufferMemory2KHR
(long value) Sets the specified value to thevkBindBufferMemory2KHR()
field.long
vkBindImageMemory
(long value) Sets the specified value to thevkBindImageMemory
field.long
vkBindImageMemory2
on Vulkan ≥ 1.1,vkBindImageMemory2KHR
when usingVK_KHR_bind_memory2
extension.vkBindImageMemory2KHR
(long value) Sets the specified value to thevkBindImageMemory2KHR()
field.long
vkCmdCopyBuffer
(long value) Sets the specified value to thevkCmdCopyBuffer
field.long
vkCreateBuffer
(long value) Sets the specified value to thevkCreateBuffer
field.long
vkCreateImage
(long value) Sets the specified value to thevkCreateImage
field.long
vkDestroyBuffer
(long value) Sets the specified value to thevkDestroyBuffer
field.long
vkDestroyImage
(long value) Sets the specified value to thevkDestroyImage
field.long
vkFlushMappedMemoryRanges
(long value) Sets the specified value to thevkFlushMappedMemoryRanges
field.long
vkFreeMemory
(long value) Sets the specified value to thevkFreeMemory
field.long
vkGetBufferMemoryRequirements
(long value) Sets the specified value to thevkGetBufferMemoryRequirements
field.long
vkGetBufferMemoryRequirements2
on Vulkan ≥ 1.1,vkGetBufferMemoryRequirements2KHR
when usingVK_KHR_dedicated_allocation
extension.vkGetBufferMemoryRequirements2KHR
(long value) Sets the specified value to thevkGetBufferMemoryRequirements2KHR()
field.long
vkGetDeviceBufferMemoryRequirements
(long value) Sets the specified value to thevkGetDeviceBufferMemoryRequirements
field.long
vkGetDeviceImageMemoryRequirements
(long value) Sets the specified value to thevkGetDeviceImageMemoryRequirements
field.long
vkGetDeviceProcAddr
(long value) Sets the specified value to thevkGetDeviceProcAddr
field.long
vkGetImageMemoryRequirements
(long value) Sets the specified value to thevkGetImageMemoryRequirements
field.long
vkGetImageMemoryRequirements2
on Vulkan ≥ 1.1,vkGetImageMemoryRequirements2KHR
when usingVK_KHR_dedicated_allocation
extension.vkGetImageMemoryRequirements2KHR
(long value) Sets the specified value to thevkGetImageMemoryRequirements2KHR()
field.long
vkGetInstanceProcAddr
(long value) Sets the specified value to thevkGetInstanceProcAddr
field.long
vkGetPhysicalDeviceMemoryProperties
(long value) Sets the specified value to thevkGetPhysicalDeviceMemoryProperties
field.long
vkGetPhysicalDeviceMemoryProperties2KHR
(long value) Sets the specified value to thevkGetPhysicalDeviceMemoryProperties2KHR
field.long
vkGetPhysicalDeviceProperties
(long value) Sets the specified value to thevkGetPhysicalDeviceProperties
field.long
vkInvalidateMappedMemoryRanges
(long value) Sets the specified value to thevkInvalidateMappedMemoryRanges
field.long
vkMapMemory
(long value) Sets the specified value to thevkMapMemory
field.long
vkUnmapMemory
(long value) Sets the specified value to thevkUnmapMemory
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. -
VKGETINSTANCEPROCADDR
public static final int VKGETINSTANCEPROCADDRThe struct member offsets. -
VKGETDEVICEPROCADDR
public static final int VKGETDEVICEPROCADDRThe struct member offsets. -
VKGETPHYSICALDEVICEPROPERTIES
public static final int VKGETPHYSICALDEVICEPROPERTIESThe struct member offsets. -
VKGETPHYSICALDEVICEMEMORYPROPERTIES
public static final int VKGETPHYSICALDEVICEMEMORYPROPERTIESThe struct member offsets. -
VKALLOCATEMEMORY
public static final int VKALLOCATEMEMORYThe struct member offsets. -
VKFREEMEMORY
public static final int VKFREEMEMORYThe struct member offsets. -
VKMAPMEMORY
public static final int VKMAPMEMORYThe struct member offsets. -
VKUNMAPMEMORY
public static final int VKUNMAPMEMORYThe struct member offsets. -
VKFLUSHMAPPEDMEMORYRANGES
public static final int VKFLUSHMAPPEDMEMORYRANGESThe struct member offsets. -
VKINVALIDATEMAPPEDMEMORYRANGES
public static final int VKINVALIDATEMAPPEDMEMORYRANGESThe struct member offsets. -
VKBINDBUFFERMEMORY
public static final int VKBINDBUFFERMEMORYThe struct member offsets. -
VKBINDIMAGEMEMORY
public static final int VKBINDIMAGEMEMORYThe struct member offsets. -
VKGETBUFFERMEMORYREQUIREMENTS
public static final int VKGETBUFFERMEMORYREQUIREMENTSThe struct member offsets. -
VKGETIMAGEMEMORYREQUIREMENTS
public static final int VKGETIMAGEMEMORYREQUIREMENTSThe struct member offsets. -
VKCREATEBUFFER
public static final int VKCREATEBUFFERThe struct member offsets. -
VKDESTROYBUFFER
public static final int VKDESTROYBUFFERThe struct member offsets. -
VKCREATEIMAGE
public static final int VKCREATEIMAGEThe struct member offsets. -
VKDESTROYIMAGE
public static final int VKDESTROYIMAGEThe struct member offsets. -
VKCMDCOPYBUFFER
public static final int VKCMDCOPYBUFFERThe struct member offsets. -
VKGETBUFFERMEMORYREQUIREMENTS2KHR
public static final int VKGETBUFFERMEMORYREQUIREMENTS2KHRThe struct member offsets. -
VKGETIMAGEMEMORYREQUIREMENTS2KHR
public static final int VKGETIMAGEMEMORYREQUIREMENTS2KHRThe struct member offsets. -
VKBINDBUFFERMEMORY2KHR
public static final int VKBINDBUFFERMEMORY2KHRThe struct member offsets. -
VKBINDIMAGEMEMORY2KHR
public static final int VKBINDIMAGEMEMORY2KHRThe struct member offsets. -
VKGETPHYSICALDEVICEMEMORYPROPERTIES2KHR
public static final int VKGETPHYSICALDEVICEMEMORYPROPERTIES2KHRThe struct member offsets. -
VKGETDEVICEBUFFERMEMORYREQUIREMENTS
public static final int VKGETDEVICEBUFFERMEMORYREQUIREMENTSThe struct member offsets. -
VKGETDEVICEIMAGEMEMORYREQUIREMENTS
public static final int VKGETDEVICEIMAGEMEMORYREQUIREMENTSThe struct member offsets.
-
-
Constructor Details
-
VmaVulkanFunctions
Creates aVmaVulkanFunctions
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<VmaVulkanFunctions>
-
vkGetInstanceProcAddr
public long vkGetInstanceProcAddr()- Returns:
- the value of the
vkGetInstanceProcAddr
field.
-
vkGetDeviceProcAddr
public long vkGetDeviceProcAddr()- Returns:
- the value of the
vkGetDeviceProcAddr
field.
-
vkGetPhysicalDeviceProperties
public long vkGetPhysicalDeviceProperties()- Returns:
- the value of the
vkGetPhysicalDeviceProperties
field.
-
vkGetPhysicalDeviceMemoryProperties
public long vkGetPhysicalDeviceMemoryProperties()- Returns:
- the value of the
vkGetPhysicalDeviceMemoryProperties
field.
-
vkAllocateMemory
public long vkAllocateMemory()- Returns:
- the value of the
vkAllocateMemory
field.
-
vkFreeMemory
public long vkFreeMemory()- Returns:
- the value of the
vkFreeMemory
field.
-
vkMapMemory
public long vkMapMemory()- Returns:
- the value of the
vkMapMemory
field.
-
vkUnmapMemory
public long vkUnmapMemory()- Returns:
- the value of the
vkUnmapMemory
field.
-
vkFlushMappedMemoryRanges
public long vkFlushMappedMemoryRanges()- Returns:
- the value of the
vkFlushMappedMemoryRanges
field.
-
vkInvalidateMappedMemoryRanges
public long vkInvalidateMappedMemoryRanges()- Returns:
- the value of the
vkInvalidateMappedMemoryRanges
field.
-
vkBindBufferMemory
public long vkBindBufferMemory()- Returns:
- the value of the
vkBindBufferMemory
field.
-
vkBindImageMemory
public long vkBindImageMemory()- Returns:
- the value of the
vkBindImageMemory
field.
-
vkGetBufferMemoryRequirements
public long vkGetBufferMemoryRequirements()- Returns:
- the value of the
vkGetBufferMemoryRequirements
field.
-
vkGetImageMemoryRequirements
public long vkGetImageMemoryRequirements()- Returns:
- the value of the
vkGetImageMemoryRequirements
field.
-
vkCreateBuffer
public long vkCreateBuffer()- Returns:
- the value of the
vkCreateBuffer
field.
-
vkDestroyBuffer
public long vkDestroyBuffer()- Returns:
- the value of the
vkDestroyBuffer
field.
-
vkCreateImage
public long vkCreateImage()- Returns:
- the value of the
vkCreateImage
field.
-
vkDestroyImage
public long vkDestroyImage()- Returns:
- the value of the
vkDestroyImage
field.
-
vkCmdCopyBuffer
public long vkCmdCopyBuffer()- Returns:
- the value of the
vkCmdCopyBuffer
field.
-
vkGetBufferMemoryRequirements2KHR
public long vkGetBufferMemoryRequirements2KHR()vkGetBufferMemoryRequirements2
on Vulkan ≥ 1.1,vkGetBufferMemoryRequirements2KHR
when usingVK_KHR_dedicated_allocation
extension. -
vkGetImageMemoryRequirements2KHR
public long vkGetImageMemoryRequirements2KHR()vkGetImageMemoryRequirements2
on Vulkan ≥ 1.1,vkGetImageMemoryRequirements2KHR
when usingVK_KHR_dedicated_allocation
extension. -
vkBindBufferMemory2KHR
public long vkBindBufferMemory2KHR()vkBindBufferMemory2
on Vulkan ≥ 1.1,vkBindBufferMemory2KHR
when usingVK_KHR_bind_memory2
extension. -
vkBindImageMemory2KHR
public long vkBindImageMemory2KHR()vkBindImageMemory2
on Vulkan ≥ 1.1,vkBindImageMemory2KHR
when usingVK_KHR_bind_memory2
extension. -
vkGetPhysicalDeviceMemoryProperties2KHR
public long vkGetPhysicalDeviceMemoryProperties2KHR()- Returns:
- the value of the
vkGetPhysicalDeviceMemoryProperties2KHR
field.
-
vkGetDeviceBufferMemoryRequirements
public long vkGetDeviceBufferMemoryRequirements()- Returns:
- the value of the
vkGetDeviceBufferMemoryRequirements
field.
-
vkGetDeviceImageMemoryRequirements
public long vkGetDeviceImageMemoryRequirements()- Returns:
- the value of the
vkGetDeviceImageMemoryRequirements
field.
-
vkGetInstanceProcAddr
Sets the specified value to thevkGetInstanceProcAddr
field. -
vkGetDeviceProcAddr
Sets the specified value to thevkGetDeviceProcAddr
field. -
vkGetPhysicalDeviceProperties
Sets the specified value to thevkGetPhysicalDeviceProperties
field. -
vkGetPhysicalDeviceMemoryProperties
Sets the specified value to thevkGetPhysicalDeviceMemoryProperties
field. -
vkAllocateMemory
Sets the specified value to thevkAllocateMemory
field. -
vkFreeMemory
Sets the specified value to thevkFreeMemory
field. -
vkMapMemory
Sets the specified value to thevkMapMemory
field. -
vkUnmapMemory
Sets the specified value to thevkUnmapMemory
field. -
vkFlushMappedMemoryRanges
Sets the specified value to thevkFlushMappedMemoryRanges
field. -
vkInvalidateMappedMemoryRanges
Sets the specified value to thevkInvalidateMappedMemoryRanges
field. -
vkBindBufferMemory
Sets the specified value to thevkBindBufferMemory
field. -
vkBindImageMemory
Sets the specified value to thevkBindImageMemory
field. -
vkGetBufferMemoryRequirements
Sets the specified value to thevkGetBufferMemoryRequirements
field. -
vkGetImageMemoryRequirements
Sets the specified value to thevkGetImageMemoryRequirements
field. -
vkCreateBuffer
Sets the specified value to thevkCreateBuffer
field. -
vkDestroyBuffer
Sets the specified value to thevkDestroyBuffer
field. -
vkCreateImage
Sets the specified value to thevkCreateImage
field. -
vkDestroyImage
Sets the specified value to thevkDestroyImage
field. -
vkCmdCopyBuffer
Sets the specified value to thevkCmdCopyBuffer
field. -
vkGetBufferMemoryRequirements2KHR
Sets the specified value to thevkGetBufferMemoryRequirements2KHR()
field. -
vkGetImageMemoryRequirements2KHR
Sets the specified value to thevkGetImageMemoryRequirements2KHR()
field. -
vkBindBufferMemory2KHR
Sets the specified value to thevkBindBufferMemory2KHR()
field. -
vkBindImageMemory2KHR
Sets the specified value to thevkBindImageMemory2KHR()
field. -
vkGetPhysicalDeviceMemoryProperties2KHR
Sets the specified value to thevkGetPhysicalDeviceMemoryProperties2KHR
field. -
vkGetDeviceBufferMemoryRequirements
Sets the specified value to thevkGetDeviceBufferMemoryRequirements
field. -
vkGetDeviceImageMemoryRequirements
Sets the specified value to thevkGetDeviceImageMemoryRequirements
field. -
set
public VmaVulkanFunctions set(long vkGetInstanceProcAddr, long vkGetDeviceProcAddr, long vkGetPhysicalDeviceProperties, long vkGetPhysicalDeviceMemoryProperties, long vkAllocateMemory, long vkFreeMemory, long vkMapMemory, long vkUnmapMemory, long vkFlushMappedMemoryRanges, long vkInvalidateMappedMemoryRanges, long vkBindBufferMemory, long vkBindImageMemory, long vkGetBufferMemoryRequirements, long vkGetImageMemoryRequirements, long vkCreateBuffer, long vkDestroyBuffer, long vkCreateImage, long vkDestroyImage, long vkCmdCopyBuffer, long vkGetBufferMemoryRequirements2KHR, long vkGetImageMemoryRequirements2KHR, long vkBindBufferMemory2KHR, long vkBindImageMemory2KHR, long vkGetPhysicalDeviceMemoryProperties2KHR, long vkGetDeviceBufferMemoryRequirements, long vkGetDeviceImageMemoryRequirements) 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 newVmaVulkanFunctions
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVmaVulkanFunctions
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVmaVulkanFunctions
instance allocated withBufferUtils
. -
create
Returns a newVmaVulkanFunctions
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 newVmaVulkanFunctions
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVmaVulkanFunctions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nvkGetInstanceProcAddr
public static long nvkGetInstanceProcAddr(long struct) Unsafe version ofvkGetInstanceProcAddr()
. -
nvkGetDeviceProcAddr
public static long nvkGetDeviceProcAddr(long struct) Unsafe version ofvkGetDeviceProcAddr()
. -
nvkGetPhysicalDeviceProperties
public static long nvkGetPhysicalDeviceProperties(long struct) Unsafe version ofvkGetPhysicalDeviceProperties()
. -
nvkGetPhysicalDeviceMemoryProperties
public static long nvkGetPhysicalDeviceMemoryProperties(long struct) Unsafe version ofvkGetPhysicalDeviceMemoryProperties()
. -
nvkAllocateMemory
public static long nvkAllocateMemory(long struct) Unsafe version ofvkAllocateMemory()
. -
nvkFreeMemory
public static long nvkFreeMemory(long struct) Unsafe version ofvkFreeMemory()
. -
nvkMapMemory
public static long nvkMapMemory(long struct) Unsafe version ofvkMapMemory()
. -
nvkUnmapMemory
public static long nvkUnmapMemory(long struct) Unsafe version ofvkUnmapMemory()
. -
nvkFlushMappedMemoryRanges
public static long nvkFlushMappedMemoryRanges(long struct) Unsafe version ofvkFlushMappedMemoryRanges()
. -
nvkInvalidateMappedMemoryRanges
public static long nvkInvalidateMappedMemoryRanges(long struct) Unsafe version ofvkInvalidateMappedMemoryRanges()
. -
nvkBindBufferMemory
public static long nvkBindBufferMemory(long struct) Unsafe version ofvkBindBufferMemory()
. -
nvkBindImageMemory
public static long nvkBindImageMemory(long struct) Unsafe version ofvkBindImageMemory()
. -
nvkGetBufferMemoryRequirements
public static long nvkGetBufferMemoryRequirements(long struct) Unsafe version ofvkGetBufferMemoryRequirements()
. -
nvkGetImageMemoryRequirements
public static long nvkGetImageMemoryRequirements(long struct) Unsafe version ofvkGetImageMemoryRequirements()
. -
nvkCreateBuffer
public static long nvkCreateBuffer(long struct) Unsafe version ofvkCreateBuffer()
. -
nvkDestroyBuffer
public static long nvkDestroyBuffer(long struct) Unsafe version ofvkDestroyBuffer()
. -
nvkCreateImage
public static long nvkCreateImage(long struct) Unsafe version ofvkCreateImage()
. -
nvkDestroyImage
public static long nvkDestroyImage(long struct) Unsafe version ofvkDestroyImage()
. -
nvkCmdCopyBuffer
public static long nvkCmdCopyBuffer(long struct) Unsafe version ofvkCmdCopyBuffer()
. -
nvkGetBufferMemoryRequirements2KHR
public static long nvkGetBufferMemoryRequirements2KHR(long struct) Unsafe version ofvkGetBufferMemoryRequirements2KHR()
. -
nvkGetImageMemoryRequirements2KHR
public static long nvkGetImageMemoryRequirements2KHR(long struct) Unsafe version ofvkGetImageMemoryRequirements2KHR()
. -
nvkBindBufferMemory2KHR
public static long nvkBindBufferMemory2KHR(long struct) Unsafe version ofvkBindBufferMemory2KHR()
. -
nvkBindImageMemory2KHR
public static long nvkBindImageMemory2KHR(long struct) Unsafe version ofvkBindImageMemory2KHR()
. -
nvkGetPhysicalDeviceMemoryProperties2KHR
public static long nvkGetPhysicalDeviceMemoryProperties2KHR(long struct) Unsafe version ofvkGetPhysicalDeviceMemoryProperties2KHR()
. -
nvkGetDeviceBufferMemoryRequirements
public static long nvkGetDeviceBufferMemoryRequirements(long struct) Unsafe version ofvkGetDeviceBufferMemoryRequirements()
. -
nvkGetDeviceImageMemoryRequirements
public static long nvkGetDeviceImageMemoryRequirements(long struct) Unsafe version ofvkGetDeviceImageMemoryRequirements()
. -
nvkGetInstanceProcAddr
public static void nvkGetInstanceProcAddr(long struct, long value) Unsafe version ofvkGetInstanceProcAddr
. -
nvkGetDeviceProcAddr
public static void nvkGetDeviceProcAddr(long struct, long value) Unsafe version ofvkGetDeviceProcAddr
. -
nvkGetPhysicalDeviceProperties
public static void nvkGetPhysicalDeviceProperties(long struct, long value) Unsafe version ofvkGetPhysicalDeviceProperties
. -
nvkGetPhysicalDeviceMemoryProperties
public static void nvkGetPhysicalDeviceMemoryProperties(long struct, long value) Unsafe version ofvkGetPhysicalDeviceMemoryProperties
. -
nvkAllocateMemory
public static void nvkAllocateMemory(long struct, long value) Unsafe version ofvkAllocateMemory
. -
nvkFreeMemory
public static void nvkFreeMemory(long struct, long value) Unsafe version ofvkFreeMemory
. -
nvkMapMemory
public static void nvkMapMemory(long struct, long value) Unsafe version ofvkMapMemory
. -
nvkUnmapMemory
public static void nvkUnmapMemory(long struct, long value) Unsafe version ofvkUnmapMemory
. -
nvkFlushMappedMemoryRanges
public static void nvkFlushMappedMemoryRanges(long struct, long value) Unsafe version ofvkFlushMappedMemoryRanges
. -
nvkInvalidateMappedMemoryRanges
public static void nvkInvalidateMappedMemoryRanges(long struct, long value) Unsafe version ofvkInvalidateMappedMemoryRanges
. -
nvkBindBufferMemory
public static void nvkBindBufferMemory(long struct, long value) Unsafe version ofvkBindBufferMemory
. -
nvkBindImageMemory
public static void nvkBindImageMemory(long struct, long value) Unsafe version ofvkBindImageMemory
. -
nvkGetBufferMemoryRequirements
public static void nvkGetBufferMemoryRequirements(long struct, long value) Unsafe version ofvkGetBufferMemoryRequirements
. -
nvkGetImageMemoryRequirements
public static void nvkGetImageMemoryRequirements(long struct, long value) Unsafe version ofvkGetImageMemoryRequirements
. -
nvkCreateBuffer
public static void nvkCreateBuffer(long struct, long value) Unsafe version ofvkCreateBuffer
. -
nvkDestroyBuffer
public static void nvkDestroyBuffer(long struct, long value) Unsafe version ofvkDestroyBuffer
. -
nvkCreateImage
public static void nvkCreateImage(long struct, long value) Unsafe version ofvkCreateImage
. -
nvkDestroyImage
public static void nvkDestroyImage(long struct, long value) Unsafe version ofvkDestroyImage
. -
nvkCmdCopyBuffer
public static void nvkCmdCopyBuffer(long struct, long value) Unsafe version ofvkCmdCopyBuffer
. -
nvkGetBufferMemoryRequirements2KHR
public static void nvkGetBufferMemoryRequirements2KHR(long struct, long value) Unsafe version ofvkGetBufferMemoryRequirements2KHR
. -
nvkGetImageMemoryRequirements2KHR
public static void nvkGetImageMemoryRequirements2KHR(long struct, long value) Unsafe version ofvkGetImageMemoryRequirements2KHR
. -
nvkBindBufferMemory2KHR
public static void nvkBindBufferMemory2KHR(long struct, long value) Unsafe version ofvkBindBufferMemory2KHR
. -
nvkBindImageMemory2KHR
public static void nvkBindImageMemory2KHR(long struct, long value) Unsafe version ofvkBindImageMemory2KHR
. -
nvkGetPhysicalDeviceMemoryProperties2KHR
public static void nvkGetPhysicalDeviceMemoryProperties2KHR(long struct, long value) Unsafe version ofvkGetPhysicalDeviceMemoryProperties2KHR
. -
nvkGetDeviceBufferMemoryRequirements
public static void nvkGetDeviceBufferMemoryRequirements(long struct, long value) Unsafe version ofvkGetDeviceBufferMemoryRequirements
. -
nvkGetDeviceImageMemoryRequirements
public static void nvkGetDeviceImageMemoryRequirements(long struct, long value) Unsafe version ofvkGetDeviceImageMemoryRequirements
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
set
Helper method that populates this struct with required Vulkan function pointers from the specified Vulkan instance and device.- Parameters:
instance
- a Vulkan instancedevice
- a Vulkan device
-