
.. _program_listing_file_Src_GraphicsEngineVulkan_memory_Allocator.ixx:

Program Listing for File Allocator.ixx
======================================

|exhale_lsh| :ref:`Return to documentation for file <file_Src_GraphicsEngineVulkan_memory_Allocator.ixx>` (``Src/GraphicsEngineVulkan/memory/Allocator.ixx``)

.. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS

.. code-block:: cpp

   module;
   
   #include <vk_mem_alloc.h>
   #include <vulkan/vulkan.hpp>
   
   export module kataglyphis.vulkan.allocator;
   
   export namespace Kataglyphis {
   
   class Allocator
   {
     public:
       Allocator();
       Allocator(const vk::Device &device, const vk::PhysicalDevice &physicalDevice, const vk::Instance &instance);
   
       void cleanUp();
   
       ~Allocator();
   
     private:
       VmaAllocator vmaAllocator{};
   };
   }// namespace Kataglyphis
