layers: Add VUID parameter to pNext validation
In parameter_validation, plumbed VUID value through to validation
routine, added VUIDs for manual PV functions, updated generator to
compute correct VUID.
Change-Id: Ida15c874ba63826902fe93869cecac87415e0259
diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h
index ce2497d..8d60f92 100644
--- a/layers/parameter_validation_utils.h
+++ b/layers/parameter_validation_utils.h
@@ -508,7 +508,8 @@
*/
static bool validate_struct_pnext(debug_report_data *report_data, const char *api_name, const ParameterName ¶meter_name,
const char *allowed_struct_names, const void *next, size_t allowed_type_count,
- const VkStructureType *allowed_types, uint32_t header_version) {
+ const VkStructureType *allowed_types, uint32_t header_version,
+ UNIQUE_VALIDATION_ERROR_CODE vuid) {
bool skip_call = false;
std::unordered_set<const void *> cycle_check;
std::unordered_set<VkStructureType, std::hash<int>> unique_stype_check;