Pipeline创建不再允许不指定Renderpass
This commit is contained in:
parent
2833bde9b8
commit
9a3eef5712
@ -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);
|
||||
|
@ -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,待知道功用后,需改进
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user