mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
use .error_ident()
in a few more places
This commit is contained in:
parent
8106028f23
commit
a56698cbe6
@ -63,28 +63,18 @@ mod compat {
|
||||
bgl::Origin::Derived => "implicit",
|
||||
bgl::Origin::Pool => "explicit",
|
||||
};
|
||||
let expected_label = expected_bgl.label();
|
||||
diff.push(format!(
|
||||
"Should be compatible an with an {expected_bgl_type} bind group layout {}",
|
||||
if expected_label.is_empty() {
|
||||
"without label".to_string()
|
||||
} else {
|
||||
format!("with label = `{}`", expected_label)
|
||||
}
|
||||
"Should be compatible an with an {expected_bgl_type} {}",
|
||||
expected_bgl.error_ident()
|
||||
));
|
||||
if let Some(assigned_bgl) = self.assigned.as_ref() {
|
||||
let assigned_bgl_type = match assigned_bgl.origin {
|
||||
bgl::Origin::Derived => "implicit",
|
||||
bgl::Origin::Pool => "explicit",
|
||||
};
|
||||
let assigned_label = assigned_bgl.label();
|
||||
diff.push(format!(
|
||||
"Assigned {assigned_bgl_type} bind group layout {}",
|
||||
if assigned_label.is_empty() {
|
||||
"without label".to_string()
|
||||
} else {
|
||||
format!("with label = `{}`", assigned_label)
|
||||
}
|
||||
"Assigned {assigned_bgl_type} {}",
|
||||
assigned_bgl.error_ident()
|
||||
));
|
||||
for (id, e_entry) in expected_bgl.entries.iter() {
|
||||
if let Some(a_entry) = assigned_bgl.entries.get(*id) {
|
||||
|
@ -345,7 +345,7 @@ impl<A: HalApi> Device<A> {
|
||||
continue;
|
||||
};
|
||||
|
||||
resource_log!("Destroy raw TextureView (destroyed) {:?}", view.label());
|
||||
resource_log!("Destroy raw {}", view.error_ident());
|
||||
|
||||
unsafe {
|
||||
use hal::Device;
|
||||
@ -361,7 +361,7 @@ impl<A: HalApi> Device<A> {
|
||||
continue;
|
||||
};
|
||||
|
||||
resource_log!("Destroy raw BindGroup (destroyed) {:?}", bind_group.label());
|
||||
resource_log!("Destroy raw {}", bind_group.error_ident());
|
||||
|
||||
unsafe {
|
||||
use hal::Device;
|
||||
|
Loading…
Reference in New Issue
Block a user