|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Vulkan memory pool buffer for transient per-frame uniform allocations. More...
#include <C:/Code/AeonEngine/engine/renderers/vulkan/VulkanMemoryPoolBuffer.hpp>


Public Member Functions | |
| VulkanMemoryPoolBuffer (const VulkanRenderer &aVulkanRenderer, size_t aStackSize) | |
| Construct with a renderer and initial pool size. | |
| VulkanMemoryPoolBuffer (const VulkanRenderer &) | |
| Construct with a renderer using the default pool size. | |
| VulkanMemoryPoolBuffer (VulkanMemoryPoolBuffer &&) | |
| Move constructor. | |
| VulkanMemoryPoolBuffer & | operator= (const VulkanMemoryPoolBuffer &)=delete |
| VulkanMemoryPoolBuffer & | operator= (VulkanMemoryPoolBuffer &&)=delete |
| void | Initialize (size_t aStackSize) |
| Initialize the pool buffer with the given size. | |
| void | Finalize () |
| Release pool buffer and descriptor resources. | |
| const VkDescriptorSet & | GetDescriptorSet () const |
| Get the Vulkan descriptor set for this pool buffer. | |
| BufferAccessor | Allocate (size_t aSize) final |
| Allocate a sub-region from the memory pool. | |
| void | Reset () final |
| Reset the pool, freeing all previous allocations. | |
| const Buffer & | GetBuffer () const final |
| Get a reference to the underlying Buffer. | |
Vulkan memory pool buffer for transient per-frame uniform allocations.
Definition at line 31 of file VulkanMemoryPoolBuffer.hpp.
| AeonGames::VulkanMemoryPoolBuffer::VulkanMemoryPoolBuffer | ( | const VulkanRenderer & | aVulkanRenderer, |
| size_t | aStackSize ) |
Construct with a renderer and initial pool size.
Definition at line 35 of file VulkanMemoryPoolBuffer.cpp.
| AeonGames::VulkanMemoryPoolBuffer::VulkanMemoryPoolBuffer | ( | const VulkanRenderer & | aVulkanRenderer | ) |
Construct with a renderer using the default pool size.
Definition at line 55 of file VulkanMemoryPoolBuffer.cpp.
| AeonGames::VulkanMemoryPoolBuffer::VulkanMemoryPoolBuffer | ( | VulkanMemoryPoolBuffer && | aVulkanMemoryPoolBuffer | ) |
Move constructor.
Definition at line 46 of file VulkanMemoryPoolBuffer.cpp.
| AeonGames::VulkanMemoryPoolBuffer::~VulkanMemoryPoolBuffer | ( | ) |
Definition at line 67 of file VulkanMemoryPoolBuffer.cpp.
|
finalvirtual |
Allocate a sub-region from the memory pool.
| aSize | Number of bytes to allocate. |
Implements AeonGames::MemoryPoolBuffer.
Definition at line 123 of file VulkanMemoryPoolBuffer.cpp.
| void AeonGames::VulkanMemoryPoolBuffer::Finalize | ( | ) |
Release pool buffer and descriptor resources.
Definition at line 72 of file VulkanMemoryPoolBuffer.cpp.
|
finalvirtual |
Get a reference to the underlying Buffer.
Implements AeonGames::MemoryPoolBuffer.
Definition at line 145 of file VulkanMemoryPoolBuffer.cpp.
| const VkDescriptorSet & AeonGames::VulkanMemoryPoolBuffer::GetDescriptorSet | ( | ) | const |
Get the Vulkan descriptor set for this pool buffer.
Definition at line 141 of file VulkanMemoryPoolBuffer.cpp.
| void AeonGames::VulkanMemoryPoolBuffer::Initialize | ( | size_t | aStackSize | ) |
Initialize the pool buffer with the given size.
Definition at line 58 of file VulkanMemoryPoolBuffer.cpp.
|
finalvirtual |
Reset the pool, freeing all previous allocations.
Implements AeonGames::MemoryPoolBuffer.
Definition at line 136 of file VulkanMemoryPoolBuffer.cpp.