mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
refactor(core): delete unused CreateDeviceError
This commit is contained in:
parent
76af20348d
commit
0903ba6d47
@ -38,7 +38,6 @@ use arrayvec::ArrayVec;
|
||||
use once_cell::sync::OnceCell;
|
||||
|
||||
use smallvec::SmallVec;
|
||||
use thiserror::Error;
|
||||
use wgt::{
|
||||
math::align_to, DeviceLostReason, TextureFormat, TextureSampleType, TextureViewDimension,
|
||||
};
|
||||
@ -187,14 +186,6 @@ impl Drop for Device {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Error)]
|
||||
pub enum CreateDeviceError {
|
||||
#[error("Not enough memory left to create device")]
|
||||
OutOfMemory,
|
||||
#[error("Failed to create internal buffer for initializing textures")]
|
||||
FailedToCreateZeroBuffer(#[from] DeviceError),
|
||||
}
|
||||
|
||||
impl Device {
|
||||
pub(crate) fn raw(&self) -> &dyn hal::DynDevice {
|
||||
self.raw.as_ref()
|
||||
|
Loading…
Reference in New Issue
Block a user