From 9a3eef5712f06a861ff6f1e336d85c2f242673d4 Mon Sep 17 00:00:00 2001 From: HuYingzhuo Date: Sun, 5 May 2019 11:31:42 +0800 Subject: [PATCH] =?UTF-8?q?Pipeline=E5=88=9B=E5=BB=BA=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E4=B8=8D=E6=8C=87=E5=AE=9ARenderpass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/graph/vulkan/VKPipeline.h | 2 +- src/RenderDevice/Vulkan/VKPipeline.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/inc/hgl/graph/vulkan/VKPipeline.h b/inc/hgl/graph/vulkan/VKPipeline.h index 19819e8c..7d0c2d38 100644 --- a/inc/hgl/graph/vulkan/VKPipeline.h +++ b/inc/hgl/graph/vulkan/VKPipeline.h @@ -49,7 +49,7 @@ class PipelineCreater public: - PipelineCreater(Device *dev,const Material *,RenderPass *rp=nullptr); + PipelineCreater(Device *dev,const Material *,RenderPass *rp); ~PipelineCreater()=default; bool Set(const VkPrimitiveTopology,bool=false); diff --git a/src/RenderDevice/Vulkan/VKPipeline.cpp b/src/RenderDevice/Vulkan/VKPipeline.cpp index 74d90a37..b65347d9 100644 --- a/src/RenderDevice/Vulkan/VKPipeline.cpp +++ b/src/RenderDevice/Vulkan/VKPipeline.cpp @@ -24,9 +24,6 @@ PipelineCreater::PipelineCreater(Device *dev,const Material *material,RenderPass pipelineInfo.pStages = material->GetStages(); { - if(!rp) - rp=dev->GetRenderPass(); - pipelineInfo.renderPass = *rp; pipelineInfo.subpass = 0; //subpass由于还不知道有什么用,所以暂时写0,待知道功用后,需改进 }