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
462 B
21 lines
462 B
#pragma once
|
|
|
|
#include <vulkan/vulkan.h>
|
|
#include "vk_mem_alloc.h"
|
|
|
|
class Instance;
|
|
|
|
class Image {
|
|
public:
|
|
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 = nullptr;
|
|
VmaAllocationInfo allocationInfo {};
|
|
}; |