8 #include <vulkan/vulkan_core.h>
9 #include <utility/dllexport.h>
10 #include <nap/numeric.h>
15 #include "vk_mem_alloc.h"
30 mSubViews(viewCount, VK_NULL_HANDLE) { }
35 VkImageView
getView()
const {
return mView; }
40 VkImageView
getSubView(
uint index)
const { assert(index < mSubViews.size());
return mSubViews[index]; }
55 VkImageLayout
getLayout()
const {
return mCurrentLayout; }
62 VkImage mImage = VK_NULL_HANDLE;
63 VkImageView mView = VK_NULL_HANDLE;
64 VmaAllocation mAllocation = VK_NULL_HANDLE;
66 VkImageLayout mCurrentLayout = VK_IMAGE_LAYOUT_UNDEFINED;
unsigned int uint
Definition: numeric.h:23
VmaAllocationInfo mAllocationInfo
Vulkan memory allocation information.
Definition: imagedata.h:65
VkImage getImage() const
Definition: imagedata.h:50
VkImageView getSubView(uint index) const
Definition: imagedata.h:40
Definition: imagedata.h:23
std::vector< VkImageView > mSubViews
Vulkan Image views.
Definition: imagedata.h:67
VkImageView getView() const
Definition: imagedata.h:35
ImageData(uint viewCount)
Definition: imagedata.h:29
Definition: templateapp.h:17
VkImageLayout getLayout() const
Definition: imagedata.h:55
uint getSubViewCount() const
Definition: imagedata.h:45