mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
[core] Remove log::error! that are also reported as validation Err (#6817)
This commit is contained in:
1 parent
7b5a348c7c
commit
48b2f1d4f7
2 files changed
+1
-16
No files matched your search
@@ -331,8 +331,6 @@ impl Global {
|
||||
return (id, None);
|
||||
};
|
||||
|
||||
log::error!("Device::create_texture error: {error}");
|
||||
|
||||
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
|
||||
(id, Some(error))
|
||||
}
|
||||
@@ -376,8 +374,6 @@ impl Global {
|
||||
return (id, None);
|
||||
};
|
||||
|
||||
log::error!("Device::create_texture error: {error}");
|
||||
|
||||
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
|
||||
(id, Some(error))
|
||||
}
|
||||
@@ -487,7 +483,6 @@ impl Global {
|
||||
return (id, None);
|
||||
};
|
||||
|
||||
log::error!("Texture::create_view({texture_id:?}) error: {error}");
|
||||
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
|
||||
(id, Some(error))
|
||||
}
|
||||
@@ -942,8 +937,6 @@ impl Global {
|
||||
return (id, None);
|
||||
};
|
||||
|
||||
log::error!("Device::create_shader_module error: {error}");
|
||||
|
||||
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
|
||||
(id, Some(error))
|
||||
}
|
||||
@@ -993,8 +986,6 @@ impl Global {
|
||||
return (id, None);
|
||||
};
|
||||
|
||||
log::error!("Device::create_shader_module_spirv error: {error}");
|
||||
|
||||
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
|
||||
(id, Some(error))
|
||||
}
|
||||
@@ -1375,8 +1366,6 @@ impl Global {
|
||||
}
|
||||
}
|
||||
|
||||
log::error!("Device::create_render_pipeline error: {error}");
|
||||
|
||||
(id, Some(error))
|
||||
}
|
||||
|
||||
@@ -2174,7 +2163,6 @@ impl Global {
|
||||
if let Some(callback) = operation.callback.take() {
|
||||
callback(Err(err.clone()));
|
||||
}
|
||||
log::error!("Buffer::map_async error: {err}");
|
||||
Err(err)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -570,10 +570,7 @@ impl Buffer {
|
||||
};
|
||||
Ok(())
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("Mapping failed: {e}");
|
||||
Err(e)
|
||||
}
|
||||
Err(e) => Err(e),
|
||||
}
|
||||
} else {
|
||||
*self.map_state.lock() = BufferMapState::Active {
|
||||
|
||||
Reference in new issue
Block a user