used newly ENUM_CLASS_RANGE_ERROR_RETURN_NULLPTR

This commit is contained in:
2022-01-10 20:29:55 +08:00
parent b6c10dca4a
commit 074cb9cc19
2 changed files with 2 additions and 3 deletions

View File

@@ -92,8 +92,7 @@ constexpr char *DescriptSetsTypeName[]=
inline const char *GetDescriptorSetsTypeName(const enum class DescriptorSetsType &type)
{
if(!ENUM_CLASS_RANGE_CHECK(DescriptorSetsType,type))
return nullptr;
ENUM_CLASS_RANGE_ERROR_RETURN_NULLPTR(type);
return DescriptSetsTypeName[(size_t)type];
}