43 explicit operator VkImage()
const {
53 void bindMemory(
const DeviceMemory& deviceMemory, VkDeviceSize memoryOffset = 0);
55 const VkMemoryRequirements& getRequirements()
const;
57 VkDeviceSize getDeviceMemoryOffset()
const;
58 VkFormat getFormat()
const;
61 static VkFormat findSupportedFormat(
const Device& device,
const std::set<VkFormat>& formats, VkImageTiling tiling, VkFormatFeatureFlags features);
64 explicit Image(VkImage
Image,
const Device* device,
const Extent& extent, VkFormat format,
bool swapchainImage);
66 static bool isFormatSupported(
const Device& device, VkFormat format, VkImageTiling tiling, VkFormatFeatureFlags features);
69 VkImage _image{VK_NULL_HANDLE};
73 VkDeviceSize _deviceMemoryOffset{0};
80 VkMemoryRequirements _requirements{};
VkImageAspectFlags _aspect
const Extent & getExtent() const