|
VOX
A little voxel engine
|
Singleton class to keep track of allocated memory. More...
#include <VulkanMemoryAllocator.hpp>

Public Member Functions | |
| VulkanMemoryAllocator (const VulkanMemoryAllocator &)=delete | |
| VulkanMemoryAllocator (VulkanMemoryAllocator &&)=delete | |
| VulkanMemoryAllocator & | operator= (const VulkanMemoryAllocator &)=delete |
| VulkanMemoryAllocator & | operator= (VulkanMemoryAllocator &&)=delete |
| VkResult | allocateMemory (VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo, const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory) |
| void | freeMemory (VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks *pAllocator) |
| VkDeviceSize | allocatedMemorySize () const |
| uint32_t | allocatedMemoryCount () const |
Static Public Member Functions | |
| static VulkanMemoryAllocator & | getInstance () |
Singleton class to keep track of allocated memory.
|
delete |
|
delete |
| uint32_t VulkanMemoryAllocator::allocatedMemoryCount | ( | ) | const |
| VkDeviceSize VulkanMemoryAllocator::allocatedMemorySize | ( | ) | const |
| VkResult VulkanMemoryAllocator::allocateMemory | ( | VkDevice | device, |
| const VkMemoryAllocateInfo * | pAllocateInfo, | ||
| const VkAllocationCallbacks * | pAllocator, | ||
| VkDeviceMemory * | pMemory | ||
| ) |
| void VulkanMemoryAllocator::freeMemory | ( | VkDevice | device, |
| VkDeviceMemory | memory, | ||
| const VkAllocationCallbacks * | pAllocator | ||
| ) |
|
inlinestatic |
|
delete |
|
delete |