VOX
A little voxel engine
Loading...
Searching...
No Matches
VulkanMemoryAllocator Class Reference

Singleton class to keep track of allocated memory. More...

#include <VulkanMemoryAllocator.hpp>

Collaboration diagram for VulkanMemoryAllocator:
Collaboration graph

Public Member Functions

 VulkanMemoryAllocator (const VulkanMemoryAllocator &)=delete
 
 VulkanMemoryAllocator (VulkanMemoryAllocator &&)=delete
 
VulkanMemoryAllocatoroperator= (const VulkanMemoryAllocator &)=delete
 
VulkanMemoryAllocatoroperator= (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 VulkanMemoryAllocatorgetInstance ()
 

Detailed Description

Singleton class to keep track of allocated memory.

Constructor & Destructor Documentation

◆ VulkanMemoryAllocator() [1/2]

VulkanMemoryAllocator::VulkanMemoryAllocator ( const VulkanMemoryAllocator )
delete

◆ VulkanMemoryAllocator() [2/2]

VulkanMemoryAllocator::VulkanMemoryAllocator ( VulkanMemoryAllocator &&  )
delete

Member Function Documentation

◆ allocatedMemoryCount()

uint32_t VulkanMemoryAllocator::allocatedMemoryCount ( ) const

◆ allocatedMemorySize()

VkDeviceSize VulkanMemoryAllocator::allocatedMemorySize ( ) const

◆ allocateMemory()

VkResult VulkanMemoryAllocator::allocateMemory ( VkDevice  device,
const VkMemoryAllocateInfo *  pAllocateInfo,
const VkAllocationCallbacks *  pAllocator,
VkDeviceMemory *  pMemory 
)

◆ freeMemory()

void VulkanMemoryAllocator::freeMemory ( VkDevice  device,
VkDeviceMemory  memory,
const VkAllocationCallbacks *  pAllocator 
)

◆ getInstance()

static VulkanMemoryAllocator & VulkanMemoryAllocator::getInstance ( )
inlinestatic

◆ operator=() [1/2]

VulkanMemoryAllocator & VulkanMemoryAllocator::operator= ( const VulkanMemoryAllocator )
delete

◆ operator=() [2/2]

VulkanMemoryAllocator & VulkanMemoryAllocator::operator= ( VulkanMemoryAllocator &&  )
delete

The documentation for this class was generated from the following files: