You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
478 B

2 weeks ago
#pragma once
#include <vulkan/vulkan.h>
#include "vk_mem_alloc.h"
2 weeks ago
class Instance;
class Image {
public:
explicit Image(uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling,
VkImageUsageFlags usage);
2 weeks ago
~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 {};
2 weeks ago
};