Pyrogenesis  trunk
Public Attributes | List of all members
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 VMA_NULLABLE pfnAllocate
 Optional, can be null. More...
 
PFN_vmaFreeDeviceMemoryFunction VMA_NULLABLE pfnFree
 Optional, can be null. More...
 
void *VMA_NULLABLE pUserData
 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.

Member Data Documentation

◆ pfnAllocate

PFN_vmaAllocateDeviceMemoryFunction VMA_NULLABLE VmaDeviceMemoryCallbacks::pfnAllocate

Optional, can be null.

◆ pfnFree

PFN_vmaFreeDeviceMemoryFunction VMA_NULLABLE VmaDeviceMemoryCallbacks::pfnFree

Optional, can be null.

◆ pUserData

void* VMA_NULLABLE VmaDeviceMemoryCallbacks::pUserData

Optional, can be null.


The documentation for this struct was generated from the following file: