The passthrough implementation: one dedicated VkDeviceMemory per buffer, mapped for its lifetime. Every allocation it returns owns its memory and starts at offset zero.
More...
#include "donner/gpu/vulkan/VulkanBufferAllocator.h"
The passthrough implementation: one dedicated VkDeviceMemory per buffer, mapped for its lifetime. Every allocation it returns owns its memory and starts at offset zero.
◆ DedicatedBufferAllocator()
| donner::gpu::vulkan::DedicatedBufferAllocator::DedicatedBufferAllocator |
( |
const VkPhysicalDeviceMemoryProperties & | memoryProperties | ) |
|
|
inlineexplicit |
- Parameters
-
| memoryProperties | Physical device memory properties, for memory-type selection. |
◆ allocate()
| Result< BufferAllocation > donner::gpu::vulkan::DedicatedBufferAllocator::allocate |
( |
const VulkanApi & | api, |
|
|
VkDevice | device, |
|
|
VkBuffer | buffer, |
|
|
std::string_view | label ) |
|
overridevirtual |
◆ release()
| void donner::gpu::vulkan::DedicatedBufferAllocator::release |
( |
const VulkanApi & | api, |
|
|
VkDevice | device, |
|
|
BufferAllocation & | allocation ) |
|
overridevirtual |
The documentation for this class was generated from the following file: