From f0a10c2cc4c29fd5af5b3f5dc10dbff2427c4129 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 1 Jul 2019 17:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3CreateRenderPass=E5=86=85?= =?UTF-8?q?=E5=AD=98=E6=B3=84=E9=9C=B2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp b/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp index 76addf3f..f63f0ba0 100644 --- a/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp +++ b/src/RenderDevice/Vulkan/VKDeviceRenderPass.cpp @@ -13,18 +13,18 @@ RenderPass *Device::CreateRenderPass(List color_format,VkFormat depth_ depth=atta_count++; } - VkAttachmentDescription *attachments=new VkAttachmentDescription[atta_count]; - VkAttachmentReference *color_references=new VkAttachmentReference[color_format.GetCount()]; + SharedArray attachments=new VkAttachmentDescription[atta_count]; + SharedArray color_references=new VkAttachmentReference[color_format.GetCount()]; VkAttachmentReference depth_references; for(uint i=0;i