Diligent Engine  v.2.4.g
Public Member Functions | Friends | List of all members
VulkanUtilities::VulkanMemoryPage Class Reference

#include <VulkanMemoryManager.hpp>

Public Member Functions

 VulkanMemoryPage (VulkanMemoryManager &ParentMemoryMgr, VkDeviceSize PageSize, uint32_t MemoryTypeIndex, bool IsHostVisible, VkMemoryAllocateFlags AllocateFlags) noexcept
 
 ~VulkanMemoryPage ()
 
 VulkanMemoryPage (VulkanMemoryPage &&rhs) noexcept
 
 VulkanMemoryPage (const VulkanMemoryPage &)=delete
 
VulkanMemoryPageoperator= (VulkanMemoryPage &)=delete
 
VulkanMemoryPageoperator= (VulkanMemoryPage &&rhs)=delete
 
bool IsEmpty () const
 
bool IsFull () const
 
VkDeviceSize GetPageSize () const
 
VkDeviceSize GetUsedSize () const
 
VulkanMemoryAllocation Allocate (VkDeviceSize size, VkDeviceSize alignment)
 
VkDeviceMemory GetVkMemory () const
 
void * GetCPUMemory () const
 

Friends

struct VulkanMemoryAllocation
 

Constructor & Destructor Documentation

◆ VulkanMemoryPage() [1/3]

VulkanUtilities::VulkanMemoryPage::VulkanMemoryPage ( VulkanMemoryManager ParentMemoryMgr,
VkDeviceSize  PageSize,
uint32_t  MemoryTypeIndex,
bool  IsHostVisible,
VkMemoryAllocateFlags  AllocateFlags 
)
noexcept

◆ ~VulkanMemoryPage()

VulkanUtilities::VulkanMemoryPage::~VulkanMemoryPage ( )

◆ VulkanMemoryPage() [2/3]

VulkanUtilities::VulkanMemoryPage::VulkanMemoryPage ( VulkanMemoryPage &&  rhs)
inlinenoexcept

◆ VulkanMemoryPage() [3/3]

VulkanUtilities::VulkanMemoryPage::VulkanMemoryPage ( const VulkanMemoryPage )
delete

Member Function Documentation

◆ Allocate()

VulkanMemoryAllocation VulkanUtilities::VulkanMemoryPage::Allocate ( VkDeviceSize  size,
VkDeviceSize  alignment 
)

◆ GetCPUMemory()

void* VulkanUtilities::VulkanMemoryPage::GetCPUMemory ( ) const
inline

◆ GetPageSize()

VkDeviceSize VulkanUtilities::VulkanMemoryPage::GetPageSize ( ) const
inline

◆ GetUsedSize()

VkDeviceSize VulkanUtilities::VulkanMemoryPage::GetUsedSize ( ) const
inline

◆ GetVkMemory()

VkDeviceMemory VulkanUtilities::VulkanMemoryPage::GetVkMemory ( ) const
inline

◆ IsEmpty()

bool VulkanUtilities::VulkanMemoryPage::IsEmpty ( ) const
inline

◆ IsFull()

bool VulkanUtilities::VulkanMemoryPage::IsFull ( ) const
inline

◆ operator=() [1/2]

VulkanMemoryPage& VulkanUtilities::VulkanMemoryPage::operator= ( VulkanMemoryPage &&  rhs)
delete

◆ operator=() [2/2]

VulkanMemoryPage& VulkanUtilities::VulkanMemoryPage::operator= ( VulkanMemoryPage )
delete

Friends And Related Function Documentation

◆ VulkanMemoryAllocation

friend struct VulkanMemoryAllocation
friend

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