Class VmaDeviceMemoryCallbacks

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VmaDeviceMemoryCallbacks extends Struct<VmaDeviceMemoryCallbacks> implements 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;
 }