vkQuake2 doxygen  1.0 dev
VmaDeviceMemoryCallbacks Struct Reference

Set of callbacks that the library will call for vkAllocateMemory and vkFreeMemory. More...

#include <vk_mem_alloc.h>

Public Attributes

PFN_vmaAllocateDeviceMemoryFunction pfnAllocate
 Optional, can be null. More...
 
PFN_vmaFreeDeviceMemoryFunction pfnFree
 Optional, can be null. More...
 

Detailed Description

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.

Definition at line 1752 of file vk_mem_alloc.h.

Member Data Documentation

◆ pfnAllocate

PFN_vmaAllocateDeviceMemoryFunction VmaDeviceMemoryCallbacks::pfnAllocate

Optional, can be null.

Definition at line 1754 of file vk_mem_alloc.h.

◆ pfnFree

PFN_vmaFreeDeviceMemoryFunction VmaDeviceMemoryCallbacks::pfnFree

Optional, can be null.

Definition at line 1756 of file vk_mem_alloc.h.