#include <memorypool.h>
|
| MemoryPool (VkDevice logicalDevice, uint heapIndex, uint pageSize=sysconf(_SC_PAGESIZE)) |
|
| ~MemoryPool () |
|
| MemoryPool (const MemoryPool &other)=delete |
|
VkDevice | getDevice () |
|
uint | pageLength (uint offset, uint size) |
|
uint | getMemoryOffset (const Allocation &allocation) |
|
uint | size (const Allocation &allocation) |
|
uint | size (const Allocation &allocation, uint alignment) |
|
uint | size (uint memoryOffset, uint dataSize, uint alignment) |
|
bool | isAligned (const Allocation &allocation, uint alignment) |
|
void | align (AllocationHandle handle, uint alignment) |
|
const Allocation & | getAllocation (AllocationHandle handle) |
|
AllocationHandle | allocate (VkDeviceSize size, uint alignment, MemoryType type) |
|
void | free (AllocationHandle handle) |
|
void | flush (AllocationHandle handle) |
|
◆ MemoryPool() [1/2]
MemoryPool::MemoryPool |
( |
VkDevice | logicalDevice, |
|
|
uint | heapIndex, |
|
|
uint | pageSize = sysconf(_SC_PAGESIZE) ) |
When passed a heapIndex, this pool will manage all the heap's memory exclusively.
- Parameters
-
The | logical-device with memory-heap(s). |
The | index of the memory-heap.. |
The | size of an allocation-page. |
◆ ~MemoryPool()
MemoryPool::~MemoryPool |
( |
| ) |
|
◆ MemoryPool() [2/2]
MemoryPool::MemoryPool |
( |
const MemoryPool & | other | ) |
|
|
delete |
◆ align()
◆ allocate()
◆ flush()
◆ free()
◆ getAllocation()
◆ getDevice()
VkDevice MemoryPool::getDevice |
( |
| ) |
|
|
inline |
◆ getMemoryOffset()
uint MemoryPool::getMemoryOffset |
( |
const Allocation & | allocation | ) |
|
◆ isAligned()
bool MemoryPool::isAligned |
( |
const Allocation & | allocation, |
|
|
uint | alignment ) |
◆ pageLength()
uint MemoryPool::pageLength |
( |
uint | offset, |
|
|
uint | size ) |
◆ size() [1/3]
uint MemoryPool::size |
( |
const Allocation & | allocation | ) |
|
◆ size() [2/3]
uint MemoryPool::size |
( |
const Allocation & | allocation, |
|
|
uint | alignment ) |
◆ size() [3/3]
uint MemoryPool::size |
( |
uint | memoryOffset, |
|
|
uint | dataSize, |
|
|
uint | alignment ) |
◆ blockSize
const uint MemoryPool::blockSize |
◆ blockTableLimit
const uint MemoryPool::blockTableLimit |
◆ heapIndex
const uint MemoryPool::heapIndex |
◆ heapSize
const uint MemoryPool::heapSize |
◆ hostMapped
UnorderedMap< VkDeviceMemory, void * > MemoryPool::hostMapped |
|
protected |
◆ pageSize
const uint MemoryPool::pageSize |
The documentation for this class was generated from the following file: