1use easygpu::wgpu::BufferAsyncError;
2use easygpu_lyon::lyon_tessellation::TessellationError;
3
4#[derive(thiserror::Error, Debug)]
6pub enum Error {
7 #[error("error reading image: {0}")]
9 Image(#[from] image::ImageError),
10 #[error("error parsing json: {0}")]
12 Json(#[from] json::Error),
13 #[error("error tessellating shape")]
15 Tessellation(TessellationError),
16 #[error("error parsing sprite data: {0}")]
18 SpriteParse(String),
19 #[error("no frames could be found for the current tag")]
21 InvalidSpriteTag,
22 #[error("error acquiring offscreen buffer: {0}")]
24 Offscreen(#[from] BufferAsyncError),
25}