struct
#include <VaultedVulkan/VV_Memory.hpp>
Memory General memory structures and functionality for device memory.
Contents
Base classes
- struct VV::V1::Memory
- General memory structures and functionality for device memory.
Derived classes
- class VV::V3::Memory
- General memory structures and functionality for device memory.
Public types
-
using Parent = V1::
Memory
Public static functions
-
static auto Allocate(LogicalDevice::
Handle _device, const AllocateInfo& _allocateInfo, Handle& _memory) -> EResult - Allocate memory objects using the default allocator.
-
static void Free(LogicalDevice::
Handle _device, Handle _memory) - Free a memory object allocated using the default allocator.
-
static void WriteToGPU(LogicalDevice::
Handle _device, Handle _memory, DeviceSize _offset, DeviceSize _size, MapFlags _flags, RoVoidPtr& _data) - Writes to GPU memory by mapping to device memory specified by a handle and then using memcpy to copy data specified in _data.
-
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.
Function documentation
static EResult VV:: V2:: Memory:: Allocate(LogicalDevice:: Handle _device,
const AllocateInfo& _allocateInfo,
Handle& _memory)
Allocate memory objects using the default allocator.
Parameters | |
---|---|
_device | |
_allocateInfo | |
_memory |
static void VV:: V2:: Memory:: Free(LogicalDevice:: Handle _device,
Handle _memory)
Free a memory object allocated using the default allocator.
Parameters | |
---|---|
_device | |
_memory |
static void VV:: V2:: Memory:: WriteToGPU(LogicalDevice:: Handle _device,
Handle _memory,
DeviceSize _offset,
DeviceSize _size,
MapFlags _flags,
RoVoidPtr& _data)
Writes to GPU memory by mapping to device memory specified by a handle and then using memcpy to copy data specified in _data.
Parameters | |
---|---|
_device | |
_memory | |
_offset | |
_size | |
_flags | |
_data |
<
static EResult VV:: V2:: Memory:: Allocate(LogicalDevice:: Handle _device,
const AllocateInfo& _allocateInfo,
const AllocationCallbacks* _allocator,
Handle& _memory)
Allocate memory objects.
Parameters | |
---|---|
_device | |
_allocateInfo | |
_allocator | |
_memory |
static void VV:: V2:: Memory:: Free(LogicalDevice:: Handle _device,
Handle _memory,
const AllocationCallbacks* _allocator)
Free a memory object.
Parameters | |
---|---|
_device | |
_memory | |
_allocator |