Update MoltenVK/MoltenVK/Utility/MVKBaseObject.h

Use constexpr instead of inline const.
This commit is contained in:
Bill Hollings 2024-05-04 15:15:39 -04:00 committed by GitHub
parent ac6702a682
commit a6a44a78c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -225,10 +225,8 @@ static inline const MVKConfiguration& mvkGetMVKConfig(MVKBaseObject* mvkObj) {
return mvkObj ? mvkObj->getMVKConfig() : getGlobalMVKConfig(); return mvkObj ? mvkObj->getMVKConfig() : getGlobalMVKConfig();
} }
/** /** Returns the reporting level string associated with the specified MoltenVK log level. */
* Returns the reporting level string associated with the specified MoltenVK log level. static constexpr char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) {
*/
static inline const char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) {
switch (logLevel) { switch (logLevel) {
case MVK_CONFIG_LOG_LEVEL_ERROR: return "mvk-error"; case MVK_CONFIG_LOG_LEVEL_ERROR: return "mvk-error";
case MVK_CONFIG_LOG_LEVEL_WARNING: return "mvk-warn"; case MVK_CONFIG_LOG_LEVEL_WARNING: return "mvk-warn";