Program Listing for File Allocator.hpp

Return to documentation for file (Src/GraphicsEngineVulkan/memory/Allocator.hpp)

#pragma once
#include <vk_mem_alloc.h>
#include <vulkan/vulkan.h>

#include <stdexcept>
namespace Kataglyphis {

class Allocator
{
  public:
    Allocator();
    Allocator(const VkDevice &device, const VkPhysicalDevice &physicalDevice, const VkInstance &instance);

    void cleanUp();

    ~Allocator();

  private:
    VmaAllocator vmaAllocator;
};
}// namespace Kataglyphis