used DESCRIPTOR_SET_TYPE_COUNT instead of "(size_t)DescriptorSetType::RANGE_SIZE"

This commit is contained in:
2023-03-22 19:37:48 +08:00
parent 9fd13680d1
commit eb8e0a921b
2 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ bool RenderCmdBuffer::BindDescriptorSets(Renderable *ri)
uint32_t count=0;
MaterialParameters *mp;
VkDescriptorSet ds[(size_t)DescriptorSetType::RANGE_SIZE];
VkDescriptorSet ds[DESCRIPTOR_SET_TYPE_COUNT];
ENUM_CLASS_FOR(DescriptorSetType,int,i)
{