优化RenderList中的DescriptorSets绑定

This commit is contained in:
hyzboy 2019-05-27 19:54:19 +08:00
parent 5615f0492e
commit dad5724874
2 changed files with 6 additions and 9 deletions

View File

@ -147,7 +147,6 @@ private:
bool InitScene()
{
render_root=new SceneNode();
render_list=new RenderList();

View File

@ -57,17 +57,15 @@ namespace hgl
last_pipeline=ri->GetPipeline();
cmd_buf->Bind(ri->GetDescriptorSets());
last_desc_sets=nullptr;
}
else
{
if(last_desc_sets!=ri->GetDescriptorSets())
{
cmd_buf->Bind(ri->GetDescriptorSets());
last_desc_sets=ri->GetDescriptorSets();
}
}
//更新fin_mvp