Improve texture view support

This commit is contained in:
SirLynix
2022-12-01 18:06:20 +01:00
committed by Jérôme Leclercq
parent 42f8cdb151
commit 08ea4c87a7
17 changed files with 128 additions and 75 deletions

View File

@@ -12,6 +12,7 @@
#include <Nazara/VulkanRenderer/Config.hpp>
#include <Nazara/VulkanRenderer/Wrapper/Image.hpp>
#include <Nazara/VulkanRenderer/Wrapper/ImageView.hpp>
#include <optional>
namespace Nz
{
@@ -46,8 +47,10 @@ namespace Nz
private:
static void InitViewForFormat(PixelFormat pixelFormat, VkImageViewCreateInfo& createImageView);
std::optional<TextureViewInfo> m_viewInfo;
std::shared_ptr<VulkanTexture> m_parentTexture;
VkImage m_image;
VkImageSubresourceRange m_imageRange;
VmaAllocation m_allocation;
Vk::Device& m_device;
Vk::ImageView m_imageView;