mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 08:53:20 +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 once_cell::sync::OnceCell;
|
||||||
|
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
use thiserror::Error;
|
|
||||||
use wgt::{
|
use wgt::{
|
||||||
math::align_to, DeviceLostReason, TextureFormat, TextureSampleType, TextureViewDimension,
|
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 {
|
impl Device {
|
||||||
pub(crate) fn raw(&self) -> &dyn hal::DynDevice {
|
pub(crate) fn raw(&self) -> &dyn hal::DynDevice {
|
||||||
self.raw.as_ref()
|
self.raw.as_ref()
|
||||||
|
Loading…
Reference in New Issue
Block a user