From cf1f39fa3d84fd56179a0819cdc5173c8b575c0b Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 15 Oct 2020 17:25:22 +0800 Subject: [PATCH] add TextureCreateInfo struct. --- inc/hgl/graph/vulkan/VKTexture.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/inc/hgl/graph/vulkan/VKTexture.h b/inc/hgl/graph/vulkan/VKTexture.h index 07af932b..9eda055d 100644 --- a/inc/hgl/graph/vulkan/VKTexture.h +++ b/inc/hgl/graph/vulkan/VKTexture.h @@ -20,6 +20,27 @@ struct TextureData VkImageTiling tiling =VK_IMAGE_TILING_OPTIMAL; };//struct TextureData +struct TextureCreateInfo +{ + VkExtent3D extent; + VkFormat format; + uint usage; + VkImageAspectFlags aspect; + ImageTiling tiling; + + VkImage image; + Memory * memory; + ImageView * image_view; + VkImageLayout image_layout; + +public: + + TextureCreateInfo() + { + hgl_zero(*this); + } +};//struct TextureCreateInfo + class Texture { protected: