From 277b20c495aa5ca2c73cbc065ddceb989c3271af Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 23 Apr 2019 00:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9C=89=E4=B8=BBRenderPass,?= =?UTF-8?q?Framebuffer=E5=90=8E=E8=8C=83=E4=BE=8B=E4=B8=AD=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/Vulkan/VKPipeline.cpp | 2 +- example/Vulkan/main.cpp | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/example/Vulkan/VKPipeline.cpp b/example/Vulkan/VKPipeline.cpp index 2271864a..ffdf7a42 100644 --- a/example/Vulkan/VKPipeline.cpp +++ b/example/Vulkan/VKPipeline.cpp @@ -24,7 +24,7 @@ PipelineCreater::PipelineCreater(Device *dev,RenderPass *rp) rp=dev->GetRenderPass(); pipelineInfo.renderPass = *rp; - pipelineInfo.subpass = 0; + pipelineInfo.subpass = 0; //subpass由于还不知道有什么用,所以暂时写0,待知道功用后,需改进 } { diff --git a/example/Vulkan/main.cpp b/example/Vulkan/main.cpp index ed334fc8..f342cc56 100644 --- a/example/Vulkan/main.cpp +++ b/example/Vulkan/main.cpp @@ -173,13 +173,7 @@ int main(int,char **) vulkan::Semaphore *sem=device->CreateSem(); - vulkan::VertexInput *vi=CreateVertexBuffer(device); - const int image_count=device->GetSwapChainImageCount(); - vulkan::Framebuffer **fb=new vulkan::Framebuffer *[image_count]; - - vulkan::ImageView *color_iv=device->GetColorImageView(0); - vulkan::ImageView *depth_iv=device->GetDepthImageView(); vulkan::PipelineCreater pc(device);