MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Profiles / WarnMissingFormatFeatures

Function WarnMissingFormatFeatures

layer/profiles_settings.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "profiles_util.h"
22
23void 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
37void WarnMissingFormatFeatures2(ProfileLayerSettings *layer_settings, const char *device_name, const std::string &format_name,
38 const std::string &features, VkFormatFeatureFlags2 profile_features,

Callers

nothing calls this directly

Calls 2

LogMessageFunction · 0.85

Tested by

no test coverage detected