#include <CeresEngine/RenderAPI/Vulkan/VKMemoryAllocator.hpp>
◆ VKMemoryAllocation() [1/4]
| CeresEngine::VKMemoryAllocation::VKMemoryAllocation |
( |
| ) |
|
◆ VKMemoryAllocation() [2/4]
◆ ~VKMemoryAllocation()
| CeresEngine::VKMemoryAllocation::~VKMemoryAllocation |
( |
| ) |
|
◆ VKMemoryAllocation() [3/4]
◆ VKMemoryAllocation() [4/4]
◆ bind() [1/2]
| void CeresEngine::VKMemoryAllocation::bind |
( |
VkBuffer |
buffer | ) |
|
Binds the allocated memory to the given buffer.
- Parameters
-
| buffer | The buffer to bind the memory to |
◆ bind() [2/2]
| void CeresEngine::VKMemoryAllocation::bind |
( |
VkImage |
image | ) |
|
Binds the allocated memory to the given ``.
- Parameters
-
| image | The to bind the memory to |
◆ flush()
Flushes the cached memory data starting at offset with size bytes.
- Parameters
-
| offset | The starting offset to be flushed |
| size | The amount of bytes to be flushed |
◆ getDeviceMemory()
| VkDeviceMemory CeresEngine::VKMemoryAllocation::getDeviceMemory |
( |
| ) |
const |
- Returns
- The Vulkan device memory object
◆ getMemoryType()
| UInt32 CeresEngine::VKMemoryAllocation::getMemoryType |
( |
| ) |
const |
- Returns
- The allocated memory type
◆ getOffset()
| VkDeviceSize CeresEngine::VKMemoryAllocation::getOffset |
( |
| ) |
const |
- Returns
- The allocated memory offset within the
deviceMemory.
◆ getSize()
| VkDeviceSize CeresEngine::VKMemoryAllocation::getSize |
( |
| ) |
const |
- Returns
- The allocated memory size within the
deviceMemory.
◆ invalidate()
Invalidates the cached memory data starting at offset with size bytes.
- Parameters
-
| offset | The starting offset to be flushed |
| size | The amount of bytes to be flushed |
◆ map()
| void * CeresEngine::VKMemoryAllocation::map |
( |
| ) |
|
Maps the memory.
- Returns
- A pointer to the memory mapped buffer
◆ operator bool()
| CeresEngine::VKMemoryAllocation::operator bool |
( |
| ) |
const |
|
inlineexplicit |
- Returns
true if the memory is allocated.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ unmap()
| void CeresEngine::VKMemoryAllocation::unmap |
( |
| ) |
|
◆ allocation
The Vulkan memory allocation.
◆ allocator
The documentation for this class was generated from the following file: