diff options
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 00e36a8d..1fd79b84 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -2009,12 +2009,11 @@ static bool ValidateRequestedFeatures(instance_layer_data *instance_data, const uint32_t total_bools = sizeof(VkPhysicalDeviceFeatures) / sizeof(VkBool32); for (uint32_t i = 0; i < total_bools; i++) { if (requested[i] > actual[i]) { - // TODO: Add index to struct member name helper to be able to include a feature name skip |= log_msg(instance_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, 0, __LINE__, DEVLIMITS_INVALID_FEATURE_REQUESTED, "DL", - "While calling vkCreateDevice(), requesting feature #%u in VkPhysicalDeviceFeatures struct, " + "While calling vkCreateDevice(), requesting feature '%s' in VkPhysicalDeviceFeatures struct, " "which is not available on this device.", - i); + GetPhysDevFeatureString(i)); errors++; } } |
