|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
Where one buffer's bytes live. More...
#include "donner/gpu/vulkan/VulkanBufferAllocator.h"
Public Attributes | |
| VkDeviceMemory | memory = VK_NULL_HANDLE |
| Allocation this buffer was bound into. | |
| VkDeviceSize | offsetBytes = 0 |
| Offset of this buffer within memory. | |
| void * | mapped = nullptr |
| Host pointer to this buffer's first byte. | |
| bool | ownsMemory = false |
| Whether releasing this allocation frees memory. False for a suballocation that shares its memory with other buffers still in use. | |
Where one buffer's bytes live.
The offset and the host pointer are the buffer's own, not the allocation's: a suballocating implementation hands out many of these pointing into one memory, so a caller must never assume a buffer starts at offset zero of its allocation.
| void* donner::gpu::vulkan::BufferAllocation::mapped = nullptr |
Host pointer to this buffer's first byte.
| VkDeviceMemory donner::gpu::vulkan::BufferAllocation::memory = VK_NULL_HANDLE |
Allocation this buffer was bound into.
| VkDeviceSize donner::gpu::vulkan::BufferAllocation::offsetBytes = 0 |
Offset of this buffer within memory.
| bool donner::gpu::vulkan::BufferAllocation::ownsMemory = false |
Whether releasing this allocation frees memory. False for a suballocation that shares its memory with other buffers still in use.