RenderResource中移除static_descriptor/global_descriptor
This commit is contained in:
parent
bc987e7d7b
commit
8436e57ed7
@ -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)
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user