优化RenderList中的DescriptorSets绑定
This commit is contained in:
parent
5615f0492e
commit
dad5724874
@ -147,7 +147,6 @@ private:
|
||||
|
||||
bool InitScene()
|
||||
{
|
||||
|
||||
render_root=new SceneNode();
|
||||
render_list=new RenderList();
|
||||
|
||||
|
@ -57,16 +57,14 @@ 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();
|
||||
}
|
||||
if(last_desc_sets!=ri->GetDescriptorSets())
|
||||
{
|
||||
cmd_buf->Bind(ri->GetDescriptorSets());
|
||||
|
||||
last_desc_sets=ri->GetDescriptorSets();
|
||||
}
|
||||
|
||||
//更新fin_mvp
|
||||
|
Loading…
x
Reference in New Issue
Block a user