Skip to content

Commit

Permalink
object_tracker: Add debug output for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyg-lunarg committed Jan 21, 2025
1 parent 686efc6 commit d53d70b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layers/object_tracker/object_tracker_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ void Tracker::DestroyObjectSilently(uint64_t object, VulkanObjectType object_typ
assert(num_total_objects > 0);

num_total_objects--;
if (num_objects[item->second->object_type] <= 0) {
LogError("UNASSIGNED-ObjectTracker-Destroy", handle, loc,
"bad object count when destroying %s Object 0x%" PRIxLEAST64,
string_VulkanObjectType(object_type), object);
}
assert(num_objects[item->second->object_type] > 0);

num_objects[item->second->object_type]--;
Expand Down

0 comments on commit d53d70b

Please sign in to comment.