RenderResource中移除static_descriptor/global_descriptor

This commit is contained in:
hyzboy 2025-06-06 00:24:06 +08:00
parent bc987e7d7b
commit 8436e57ed7
3 changed files with 4 additions and 14 deletions

View File

@ -77,16 +77,9 @@ public:
VulkanDevice *GetDevice(){return device;}
//注:并非一定要走这里,这里只是提供一个注册和自动绑定的机制
DescriptorBinding static_descriptor; ///<静态属性描述符绑定管理
DescriptorBinding global_descriptor; ///<全局属性描述符绑定管理
public:
RenderResource(VulkanDevice *dev):device(dev),
static_descriptor(DescriptorSetType::Static),
global_descriptor(DescriptorSetType::Global)
{}
RenderResource(VulkanDevice *dev):device(dev){}
virtual ~RenderResource()=default;
public: //添加数据到管理器如果指针为nullptr会返回-1

View File

@ -172,9 +172,6 @@ Material *RenderResource::CreateMaterial(const AnsiString &mtl_name,const mtl::M
Add(mtl);
static_descriptor.Bind(mtl);
global_descriptor.Bind(mtl);
material_by_name.Add(mtl_name,mtl);
return mtl.Finish();
}