Update MoltenVK/MoltenVK/Utility/MVKEnvironment.cpp

Co-authored-by: Chip Davis <cdavis5x@gmail.com>
This commit is contained in:
Bill Hollings 2023-12-19 17:20:17 -05:00 committed by GitHub
parent 1ce40f63a4
commit 6daa6c0f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ static constexpr uint32_t getExpectedMVKConfigurationSize() {
// Return the expected number of string members in MVKConfiguration, based on contents of MVKConfigMembers.def.
static constexpr uint32_t getExpectedMVKConfigurationStringCount() {
#define MVK_CONFIG_MEMBER(member, mbrType, name)
#define MVK_CONFIG_MEMBER_STRING(member, mbrType, name) if(std::is_same<mbrType, const char*>::value) { strCnt++; }
#define MVK_CONFIG_MEMBER_STRING(member, mbrType, name) strCnt++;
uint32_t strCnt = 0;
#include "MVKConfigMembers.def"
return strCnt;