| 21 | #include "profiles_util.h" |
| 22 | |
| 23 | void WarnMissingFormatFeatures(ProfileLayerSettings *layer_settings, const char *device_name, const std::string &format_name, |
| 24 | const std::string &features, VkFormatFeatureFlags profile_features, |
| 25 | VkFormatFeatureFlags device_features) { |
| 26 | if (!(layer_settings->log.debug_reports & DEBUG_REPORT_WARNING_BIT)) { |
| 27 | return; |
| 28 | } |
| 29 | |
| 30 | LogMessage(layer_settings, DEBUG_REPORT_WARNING_BIT, |
| 31 | "For %s `%s`,\nthe Profile requires:\n\t\"%s\"\nbut the Device (%s) %s.\nThe " |
| 32 | "`%s` can't be simulated on this Device.\n", |
| 33 | format_name.c_str(), features.c_str(), GetFormatFeatureString(profile_features).c_str(), device_name, |
| 34 | format_device_support_string(device_features).c_str(), features.c_str()); |
| 35 | } |
| 36 | |
| 37 | void WarnMissingFormatFeatures2(ProfileLayerSettings *layer_settings, const char *device_name, const std::string &format_name, |
| 38 | const std::string &features, VkFormatFeatureFlags2 profile_features, |
nothing calls this directly
no test coverage detected