#pragma once #include #include "vk_mem_alloc.h" class Instance; class Image { public: explicit Image(uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage); ~Image(); VkImageView createView(VkFormat format, VkImageAspectFlags aspectFlags); VkImage handle = VK_NULL_HANDLE; VkImageView view = VK_NULL_HANDLE; private: VmaAllocation allocation = VK_NULL_HANDLE; VmaAllocationInfo allocationInfo {}; };