layers:Add valid usage error ids
Update descriptor set cases where no memory bound to buffer or image to
use the correct respective unique error ids.
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp
index 5caa8bc..ba5c481 100644
--- a/layers/descriptor_sets.cpp
+++ b/layers/descriptor_sets.cpp
@@ -763,7 +763,7 @@
usage = image_node->createInfo.usage;
// Validate that memory is bound to image
if (ValidateMemoryIsBoundToImage(dev_data, image_node, "vkUpdateDescriptorSets()")) {
- // TODO : Need new code(s) for language in 11.6 Memory Association
+ *error_code = VALIDATION_ERROR_02524;
*error_msg = "No memory bound to image.";
return false;
}
@@ -1298,7 +1298,7 @@
return false;
}
if (ValidateMemoryIsBoundToBuffer(device_data_, buffer_node, "vkUpdateDescriptorSets()")) {
- // TODO : This is a repeat code, need new code(s) for language in 11.6 Memory Association
+ *error_code = VALIDATION_ERROR_02525;
*error_msg = "No memory bound to buffer.";
return false;
}