upgraded to newly DescriptorSetType

This commit is contained in:
2023-02-22 21:50:18 +08:00
parent 95064488db
commit b35ef27610
17 changed files with 106 additions and 106 deletions

View File

@@ -5,9 +5,9 @@
VK_NAMESPACE_BEGIN
MaterialData::~MaterialData()
{
SAFE_CLEAR(mp.m);
SAFE_CLEAR(mp.r);
SAFE_CLEAR(mp.g);
for(int i=0;i<int(DescriptorSetsType::RANGE_SIZE);i++)
if(mp_array[i])
delete mp_array[i];
delete shader_maps;
SAFE_CLEAR(mds);
@@ -23,4 +23,9 @@ const VkPipelineLayout Material::GetPipelineLayout()const
{
return data->pipeline_layout_data->pipeline_layout;
}
const bool Material::hasSet(const DescriptorSetsType &dst)const
{
return data->mds->hasSet(dst);
}
VK_NAMESPACE_END