![]() |
Plasma Engine
2.0
|
Thin abstraction layer over VulkanMemoryAllocator to allow for abstraction and prevent pulling in its massive header into other files. Functions are a subset of VMA's. To be extended once a use-case comes up. More...
#include <MemoryAllocatorVulkan.h>
Static Public Member Functions | |
static vk::Result | Initialize (vk::PhysicalDevice physicalDevice, vk::Device device, vk::Instance instance) |
static void | DeInitialize () |
static vk::Result | CreateImage (const vk::ImageCreateInfo &imageCreateInfo, const plVulkanAllocationCreateInfo &allocationCreateInfo, vk::Image &out_image, plVulkanAllocation &out_alloc, plVulkanAllocationInfo *pAllocInfo=nullptr) |
static void | DestroyImage (vk::Image &image, plVulkanAllocation &alloc) |
static vk::Result | CreateBuffer (const vk::BufferCreateInfo &bufferCreateInfo, const plVulkanAllocationCreateInfo &allocationCreateInfo, vk::Buffer &out_buffer, plVulkanAllocation &out_alloc, plVulkanAllocationInfo *pAllocInfo=nullptr) |
static void | DestroyBuffer (vk::Buffer &buffer, plVulkanAllocation &alloc) |
static plVulkanAllocationInfo | GetAllocationInfo (plVulkanAllocation alloc) |
static void | SetAllocationUserData (plVulkanAllocation alloc, const char *pUserData) |
static vk::Result | MapMemory (plVulkanAllocation alloc, void **pData) |
static void | UnmapMemory (plVulkanAllocation alloc) |
static vk::Result | FlushAllocation (plVulkanAllocation alloc, vk::DeviceSize offset=0, vk::DeviceSize size=VK_WHOLE_SIZE) |
static vk::Result | InvalidateAllocation (plVulkanAllocation alloc, vk::DeviceSize offset=0, vk::DeviceSize size=VK_WHOLE_SIZE) |
Thin abstraction layer over VulkanMemoryAllocator to allow for abstraction and prevent pulling in its massive header into other files. Functions are a subset of VMA's. To be extended once a use-case comes up.