VV::V1::Memory struct

General memory structures and functionality for device memory.

Specification

Base classes

struct VV::V0::Memory
General memory definitions.

Derived classes

struct VV::V2::Memory
General memory structures and functionality for device memory.

Public types

using Handle = VkDeviceMemory
Specification

Public static variables

static DeviceSize ZeroOffset constexpr
Used to specify no offset when mapping memory.

Public static functions

static auto Allocate(LogicalDevice::Handle _device, const AllocateInfo& _allocateInfo, const AllocationCallbacks* _allocator, Handle& _memory) -> EResult
Allocate memory objects.
static void Free(LogicalDevice::Handle _device, Handle _memory, const AllocationCallbacks* _allocator)
Free a memory object.
static auto Map(LogicalDevice::Handle _device, Handle _memory, DeviceSize _offset, DeviceSize _size, MapFlags _flags, VoidPtr& _data) -> EResult
Retrieve a host virtual address pointer to a region of a mappable memory object.
static void Unmap(LogicalDevice::Handle _device, Handle _memory)
Unmap a memory object once host access to it is no longer needed by the application.