mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
use .error_ident()
for resource logging
This commit is contained in:
parent
eeb57e1cee
commit
d30c02ffa3
@ -304,8 +304,8 @@ impl<A: HalApi> ResourceTracker for BufferTracker<A> {
|
||||
//so it's already been released from user and so it's not inside Registry\Storage
|
||||
if existing_ref_count <= 2 {
|
||||
resource_log!(
|
||||
"BufferTracker::remove_abandoned: removing {:?}",
|
||||
self.metadata.get_resource_unchecked(index).as_info().id()
|
||||
"BufferTracker::remove_abandoned: removing {}",
|
||||
self.metadata.get_resource_unchecked(index).error_ident()
|
||||
);
|
||||
|
||||
self.metadata.remove(index);
|
||||
@ -313,8 +313,8 @@ impl<A: HalApi> ResourceTracker for BufferTracker<A> {
|
||||
}
|
||||
|
||||
resource_log!(
|
||||
"BufferTracker::remove_abandoned: not removing {:?}, ref count {}",
|
||||
self.metadata.get_resource_unchecked(index).as_info().id(),
|
||||
"BufferTracker::remove_abandoned: not removing {}, ref count {}",
|
||||
self.metadata.get_resource_unchecked(index).error_ident(),
|
||||
existing_ref_count
|
||||
);
|
||||
|
||||
|
@ -86,9 +86,9 @@ impl<T: Resource> ResourceTracker for StatelessTracker<T> {
|
||||
//so it's already been released from user and so it's not inside Registry\Storage
|
||||
if existing_ref_count <= 2 {
|
||||
resource_log!(
|
||||
"StatelessTracker<{}>::remove_abandoned: removing {:?}",
|
||||
"StatelessTracker<{}>::remove_abandoned: removing {}",
|
||||
T::TYPE,
|
||||
self.metadata.get_resource_unchecked(index).as_info().id()
|
||||
self.metadata.get_resource_unchecked(index).error_ident()
|
||||
);
|
||||
|
||||
self.metadata.remove(index);
|
||||
@ -96,9 +96,9 @@ impl<T: Resource> ResourceTracker for StatelessTracker<T> {
|
||||
}
|
||||
|
||||
resource_log!(
|
||||
"StatelessTracker<{}>::remove_abandoned: not removing {:?}, ref count {}",
|
||||
"StatelessTracker<{}>::remove_abandoned: not removing {}, ref count {}",
|
||||
T::TYPE,
|
||||
self.metadata.get_resource_unchecked(index).as_info().id(),
|
||||
self.metadata.get_resource_unchecked(index).error_ident(),
|
||||
existing_ref_count
|
||||
);
|
||||
|
||||
|
@ -428,8 +428,8 @@ impl<A: HalApi> ResourceTracker for TextureTracker<A> {
|
||||
//so it's already been released from user and so it's not inside Registry\Storage
|
||||
if existing_ref_count <= 2 {
|
||||
resource_log!(
|
||||
"TextureTracker::remove_abandoned: removing {:?}",
|
||||
self.metadata.get_resource_unchecked(index).as_info().id()
|
||||
"TextureTracker::remove_abandoned: removing {}",
|
||||
self.metadata.get_resource_unchecked(index).error_ident()
|
||||
);
|
||||
|
||||
self.start_set.complex.remove(&index);
|
||||
@ -439,8 +439,8 @@ impl<A: HalApi> ResourceTracker for TextureTracker<A> {
|
||||
}
|
||||
|
||||
resource_log!(
|
||||
"TextureTracker::remove_abandoned: not removing {:?}, ref count {}",
|
||||
self.metadata.get_resource_unchecked(index).as_info().id(),
|
||||
"TextureTracker::remove_abandoned: not removing {}, ref count {}",
|
||||
self.metadata.get_resource_unchecked(index).error_ident(),
|
||||
existing_ref_count
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user