diff options
Diffstat (limited to 'layers/parameter_validation_utils.h')
| -rw-r--r-- | layers/parameter_validation_utils.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h index 856d9683..313dfe67 100644 --- a/layers/parameter_validation_utils.h +++ b/layers/parameter_validation_utils.h @@ -637,15 +637,15 @@ static bool validate_bool32(debug_report_data *report_data, const char *apiName, */ template <typename T> bool validate_ranged_enum(debug_report_data *report_data, const char *apiName, const ParameterName ¶meterName, - const char *enumName, T begin, T end, T value) { + const char *enumName, T begin, T end, T value, UNIQUE_VALIDATION_ERROR_CODE vuid) { bool skip_call = false; if (((value < begin) || (value > end)) && !is_extension_added_token(value)) { - skip_call |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0, __LINE__, - UNRECOGNIZED_VALUE, LayerName, + skip_call |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0, __LINE__, vuid, + LayerName, "%s: value of %s (%d) does not fall within the begin..end range of the core %s " - "enumeration tokens and is not an extension added token", - apiName, parameterName.get_name().c_str(), value, enumName); + "enumeration tokens and is not an extension added token. %s", + apiName, parameterName.get_name().c_str(), value, enumName, validation_error_map[vuid]); } return skip_call; |
