#![allow(missing_docs)]
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("An error occurred with the update loop: {0}")]
#[cfg(all(feature = "window", not(feature = "headless")))]
UpdateLoopError(#[from] winit::error::EventLoopError),
#[error("Failed to find an appropriate adapter")]
AdapterNotFound(#[from] wgpu::RequestAdapterError),
#[error("Failed to find an appropriate device for rendering")]
DeviceNotFound(#[from] wgpu::RequestDeviceError),
#[error("Failed to load the texture data from given source")]
LoadingTextureDataError(#[from] image::error::ImageError),
#[error("{0}")]
Custom(String),
}