#include <memorypool.h>
|
| | MemoryAllocator (VkDevice logicalDevice, uint heapIndex, uint pageSize=sysconf(_SC_PAGESIZE)) |
| |
| | MemoryAllocator (const MemoryAllocator &other)=delete |
| |
| AllocationHandle | allocate (const VkMemoryRequirements &memoryRequirements, MemoryType type) |
| |
| AllocationHandle | allocateBuffer (VkBuffer buffer, MemoryType type) |
| |
| AllocationHandle | allocateImage (VkImage image, MemoryType type) |
| |
| void | bindBuffer (VkBuffer buffer, AllocationHandle handle) |
| |
| void | bindImage (VkImage image, AllocationHandle handle) |
| |
| void * | getMemory (AllocationHandle handle) |
| |
| void * | map (AllocationHandle handle) |
| |
| | 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) |
| |
◆ MemoryAllocator() [1/2]
| MemoryAllocator::MemoryAllocator |
( |
VkDevice | logicalDevice, |
|
|
uint | heapIndex, |
|
|
uint | pageSize = sysconf(_SC_PAGESIZE) ) |
- Parameters
-
| The | logical-device with memory-heap(s). |
| The | type of memory this pool holds. |
| The | index of the memory-heap the pool memory was allocated-from. |
◆ MemoryAllocator() [2/2]
◆ allocate()
◆ allocateBuffer()
◆ allocateImage()
◆ bindBuffer()
◆ bindImage()
◆ getMemory()
◆ map()
The documentation for this class was generated from the following file: