Update MoltenVK/MoltenVK/Utility/MVKBaseObject.h
Use constexpr instead of inline const.
This commit is contained in:
parent
ac6702a682
commit
a6a44a78c1
@ -225,10 +225,8 @@ static inline const MVKConfiguration& mvkGetMVKConfig(MVKBaseObject* mvkObj) {
|
||||
return mvkObj ? mvkObj->getMVKConfig() : getGlobalMVKConfig();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the reporting level string associated with the specified MoltenVK log level.
|
||||
*/
|
||||
static inline const char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) {
|
||||
/** Returns the reporting level string associated with the specified MoltenVK log level. */
|
||||
static constexpr char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) {
|
||||
switch (logLevel) {
|
||||
case MVK_CONFIG_LOG_LEVEL_ERROR: return "mvk-error";
|
||||
case MVK_CONFIG_LOG_LEVEL_WARNING: return "mvk-warn";
|
||||
|
Loading…
x
Reference in New Issue
Block a user