Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::vulkan::BufferAllocation Struct Reference

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.

Detailed Description

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.

Member Data Documentation

◆ mapped

void* donner::gpu::vulkan::BufferAllocation::mapped = nullptr

Host pointer to this buffer's first byte.

◆ memory

VkDeviceMemory donner::gpu::vulkan::BufferAllocation::memory = VK_NULL_HANDLE

Allocation this buffer was bound into.

◆ offsetBytes

VkDeviceSize donner::gpu::vulkan::BufferAllocation::offsetBytes = 0

Offset of this buffer within memory.

◆ ownsMemory

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.


The documentation for this struct was generated from the following file: