add DescriptorSets at RenderableInstance class. and renamed RenderableInstance::GetMIDescSets instead of GetDescriptorSets.

This commit is contained in:
2021-05-12 19:03:08 +08:00
parent 015a4d0b8e
commit 199cc5f6b1
4 changed files with 9 additions and 3 deletions

View File

@@ -10,6 +10,8 @@ RenderableInstance::RenderableInstance(Renderable *r,MaterialInstance *mi,Pipeli
mat_inst=mi;
pipeline=p;
descriptor_sets=nullptr;
buffer_count=count;
buffer_list=bl;
buffer_size=bs;
@@ -17,6 +19,7 @@ RenderableInstance::RenderableInstance(Renderable *r,MaterialInstance *mi,Pipeli
RenderableInstance::~RenderableInstance()
{
SAFE_CLEAR(descriptor_sets);
//需要在这里添加删除pipeline/desc_sets/render_obj引用计数的代码
delete[] buffer_list;