Class VmaDeviceMemoryCallbacks

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VmaDeviceMemoryCallbacks>
org.lwjgl.util.vma.VmaDeviceMemoryCallbacks
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VmaDeviceMemoryCallbacks extends org.lwjgl.system.Struct<VmaDeviceMemoryCallbacks> implements org.lwjgl.system.NativeResource
Set of callbacks that the library will call for vkAllocateMemory and vkFreeMemory.

Provided for informative purpose, e.g. to gather statistics about number of allocations or total amount of memory allocated in Vulkan.

Used in VmaAllocatorCreateInfo::pDeviceMemoryCallbacks.

Layout


 struct VmaDeviceMemoryCallbacks {
     PFN_vmaAllocateDeviceMemoryFunction pfnAllocate;
     PFN_vmaFreeDeviceMemoryFunction pfnFree;
     void * pUserData;
 }