refactor(core): delete unused CreateDeviceError

This commit is contained in:
Erich Gubler 2024-09-19 15:02:56 -04:00
parent 76af20348d
commit 0903ba6d47

View File

@ -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()