From 3871125498f8a26dfd84751f7a1d2009510f9eae Mon Sep 17 00:00:00 2001 From: HuYingzhuo Date: Thu, 11 Apr 2019 20:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=80=E6=AF=81ImageView?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/Vulkan/RenderSurfaceAttribute.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/example/Vulkan/RenderSurfaceAttribute.cpp b/example/Vulkan/RenderSurfaceAttribute.cpp index 12367027..320059eb 100644 --- a/example/Vulkan/RenderSurfaceAttribute.cpp +++ b/example/Vulkan/RenderSurfaceAttribute.cpp @@ -130,6 +130,19 @@ RenderSurfaceAttribute::RenderSurfaceAttribute(VkInstance inst,VkPhysicalDevice RenderSurfaceAttribute::~RenderSurfaceAttribute() { + const uint32_t iv_count=sc_image_views.GetCount(); + + if(iv_count>0) + { + VkImageView *iv=sc_image_views.GetData(); + + for(uint32_t i=0;i