13 vk::ImageViewCreateInfo view_info;
14 view_info.image = image_;
15 view_info.viewType = vk::ImageViewType::e2D;
17 view_info.subresourceRange.aspectMask = vk::ImageAspectFlagBits::eColor;
18 view_info.subresourceRange.baseMipLevel = 0u;
19 view_info.subresourceRange.baseArrayLayer = 0u;
20 view_info.subresourceRange.levelCount = desc.mip_count;
23 auto [view_result, view] =
device.createImageViewUnique(view_info);
24 if (view_result != vk::Result::eSuccess) {
28 image_view_ = std::move(view);
Abstract base class that represents a vkImage and an vkImageView.
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...